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) (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jun 22, 2021
1 parent 29327f1 commit efbec46
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 @@ -1084,8 +1084,7 @@ func (local *local) writeAndIngestByRange(
if !hasKey {
log.L().Info("There is no pairs in iterator",
log.ZapRedactBinary("start", start),
log.ZapRedactBinary("end", end),
log.ZapRedactBinary("next end", nextKey(end)))
log.ZapRedactBinary("end", end))
return nil
}
pairStart := append([]byte{}, iter.Key()...)
Expand Down

0 comments on commit efbec46

Please sign in to comment.