Skip to content

Commit

Permalink
Merge pull request grafana#1697 from cortexproject/chunk-encoding-name
Browse files Browse the repository at this point in the history
Use human-readable names for chunk encodings
  • Loading branch information
khaines authored Sep 29, 2019
2 parents ab7f97f + 6962947 commit 5e7b42f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions encoding/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func (Config) RegisterFlags(f *flag.FlagSet) {

// String implements flag.Value.
func (e Encoding) String() string {
if known, found := encodings[e]; found {
return known.Name
}
return fmt.Sprintf("%d", e)
}

Expand Down

0 comments on commit 5e7b42f

Please sign in to comment.