Browse Source

Update record.go

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
pull/13133/head
Matthieu MOREL 1 year ago committed by GitHub
parent
commit
469e415d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tsdb/record/record.go

2
tsdb/record/record.go

@ -532,7 +532,7 @@ func (d *Decoder) FloatHistogramSamples(rec []byte, histograms []RefFloatHistogr
}
if dec.Err() != nil {
return nil, fmt.Errorf("decode error after %d histograms: %w", len(histograms), dec.Err())
return nil, fmt.Errorf("decode error after %d histograms: %w", len(histograms), dec.Err())
}
if len(dec.B) > 0 {
return nil, fmt.Errorf("unexpected %d bytes left in entry", len(dec.B))

Loading…
Cancel
Save