From 5ab67cf78d6a61b74f7d6f1dff744ac37987a2c7 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 4 Nov 2024 20:27:36 +0700 Subject: [PATCH] save --- erigon-lib/seg/decompress.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erigon-lib/seg/decompress.go b/erigon-lib/seg/decompress.go index 1cde03ebaf8..c7be52be6aa 100644 --- a/erigon-lib/seg/decompress.go +++ b/erigon-lib/seg/decompress.go @@ -1085,7 +1085,7 @@ func (g *Getter) BinarySearch(fromPrefix []byte, count int, f func(i uint64) (of } if foundItem > 2 { - g.Reset(f(uint64(foundItem - 2))) + g.Reset(f(uint64(foundItem - 2))) // prev key key, _ := g.Next(nil) if bytes.Compare(fromPrefix, key) > 0 { panic(fmt.Errorf("see smaller key: %x, %x", fromPrefix, key))