mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 22:27:17 +02:00
Fixed Decoder.Series() error checking (#9201)
Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
parent
7291563d4d
commit
84e786ebc1
@ -1852,7 +1852,7 @@ func (dec *Decoder) Series(b []byte, lbls *labels.Labels, chks *[]chunks.Meta) e
|
|||||||
k = d.Uvarint()
|
k = d.Uvarint()
|
||||||
|
|
||||||
if k == 0 {
|
if k == 0 {
|
||||||
return nil
|
return d.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
t0 := d.Varint64()
|
t0 := d.Varint64()
|
||||||
|
Loading…
Reference in New Issue
Block a user