From e2b62447c7469818ea294096f7822bc5f8d1fc7c Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 24 Mar 2023 11:02:11 +0700 Subject: [PATCH] clean --- state/domain.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/state/domain.go b/state/domain.go index b47d03c74..17ef80ca9 100644 --- a/state/domain.go +++ b/state/domain.go @@ -1021,6 +1021,9 @@ func (d *Domain) collate(ctx context.Context, step, txFrom, txTo uint64, roTx kv return Collation{}, fmt.Errorf("failed to obtain keys count for domain %q", d.filenameBase) } for k, _, err = keysCursor.First(); err == nil && k != nil; k, _, err = keysCursor.NextNoDup() { + if err != nil { + return Collation{}, err + } pos++ select { case <-logEvery.C: