Remove obsolete TODOs about metadata (#9490)

Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
Björn Rabenstein 2021-10-12 13:30:30 +02:00 committed by GitHub
parent 12486b1250
commit c450c01eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -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)