Skip to content

Commit

Permalink
Merge pull request grafana#1176 from cortexproject/revert-measure-enc…
Browse files Browse the repository at this point in the history
…oded-size

Revert "Change chunkSize metric to include metadata overhead"
  • Loading branch information
tomwilkie authored Jan 9, 2019
2 parents 07573ab + ca18d35 commit 79f6122
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,6 @@ func (c *Chunk) Encode() ([]byte, error) {
return c.encoded, nil
}

// EncodedSize returns the number of bytes in the encoded data for this chunk
func (c *Chunk) EncodedSize() int {
return len(c.encoded)
}

// DecodeContext holds data that can be re-used between decodes of different chunks
type DecodeContext struct {
reader *snappy.Reader
Expand Down

0 comments on commit 79f6122

Please sign in to comment.