mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Update tombstones.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
parent
118460a64f
commit
c74b7ad4fb
|
@ -199,7 +199,7 @@ func ReadTombstones(dir string) (Reader, int64, error) {
|
|||
}
|
||||
|
||||
if len(b) < tombstonesHeaderSize {
|
||||
return nil, 0, fmt.Errorf("tombstones header", encoding.ErrInvalidSize)
|
||||
return nil, 0, fmt.Errorf("tombstones header: %w", encoding.ErrInvalidSize)
|
||||
}
|
||||
|
||||
d := &encoding.Decbuf{B: b[:len(b)-tombstonesCRCSize]}
|
||||
|
|
Loading…
Reference in a new issue