mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-05 05:37:10 +02: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 New Issue
Block a user