From c450c01eb93df232db00ca62767c66e31bb1e3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Rabenstein?= Date: Tue, 12 Oct 2021 13:30:30 +0200 Subject: [PATCH] Remove obsolete TODOs about metadata (#9490) Signed-off-by: beorn7 --- tsdb/chunkenc/chunk.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/tsdb/chunkenc/chunk.go b/tsdb/chunkenc/chunk.go index 546937dc0..c5133dc59 100644 --- a/tsdb/chunkenc/chunk.go +++ b/tsdb/chunkenc/chunk.go @@ -160,7 +160,6 @@ func (p *pool) Get(e Encoding, b []byte) (Chunk, error) { c.b.count = 0 return c, nil case EncHistogram: - // TODO: update metadata c := p.histogram.Get().(*HistogramChunk) c.b.stream = b c.b.count = 0 @@ -183,7 +182,6 @@ func (p *pool) Put(c Chunk) error { xc.b.count = 0 p.xor.Put(c) case EncHistogram: - // TODO: update metadata sh, ok := c.(*HistogramChunk) // This may happen often with wrapped chunks. Nothing we can really do about // it but returning an error would cause a lot of allocations again. Thus, @@ -208,7 +206,6 @@ func FromData(e Encoding, d []byte) (Chunk, error) { case EncXOR: return &XORChunk{b: bstream{count: 0, stream: d}}, nil case EncHistogram: - // TODO: update metadata return &HistogramChunk{b: bstream{count: 0, stream: d}}, nil } return nil, errors.Errorf("invalid chunk encoding %q", e)