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

Commit

Permalink
lightning: fix panic in nextKey (#1261) (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jun 22, 2021
1 parent 2fc761c commit cf9c343
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 @@ -1135,8 +1135,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))
return nil
}
pairStart := append([]byte{}, iter.Key()...)
Expand Down

0 comments on commit cf9c343

Please sign in to comment.