Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
lightning: do not call nextKey more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepymole committed Jun 21, 2021
1 parent d9766fd commit 890df4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/lightning/backend/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -1683,8 +1683,7 @@ func (local *local) writeAndIngestByRange(
if !hasKey {
log.L().Info("There is no pairs in iterator",
logutil.Key("start", start),
logutil.Key("end", end),
logutil.Key("next end", nextKey(end)))
logutil.Key("end", end))
engineFile.finishedRanges.add(Range{start: start, end: end})
return nil
}
Expand Down

0 comments on commit 890df4b

Please sign in to comment.