Skip to content

Commit

Permalink
compact: standardize group key order
Browse files Browse the repository at this point in the history
  • Loading branch information
fabxc committed Mar 5, 2018
1 parent 082dc27 commit 8357d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compact/compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func newGroup(

// Key returns an identifier for the group.
func (cg *Group) Key() string {
return fmt.Sprintf("%s@%d", cg.labels, cg.resolution)
return fmt.Sprintf("%d@%s", cg.resolution, cg.labels)
}

// Add the block with the given meta to the group.
Expand Down

0 comments on commit 8357d16

Please sign in to comment.