mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-27 13:42:31 -08:00
Update record.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
parent
69c07ec6ae
commit
469e415d09
|
@ -532,7 +532,7 @@ func (d *Decoder) FloatHistogramSamples(rec []byte, histograms []RefFloatHistogr
|
||||||
}
|
}
|
||||||
|
|
||||||
if dec.Err() != nil {
|
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 {
|
if len(dec.B) > 0 {
|
||||||
return nil, fmt.Errorf("unexpected %d bytes left in entry", len(dec.B))
|
return nil, fmt.Errorf("unexpected %d bytes left in entry", len(dec.B))
|
||||||
|
|
Loading…
Reference in a new issue