Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
LuKks committed Jul 6, 2023
1 parent bc38a38 commit d0def9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/replicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ class Peer {
}

_maybeWant (start, length = 1) {
if (start + length < this.remoteContiguousLength) return
if (start + length <= this.remoteContiguousLength) return

let i = Math.floor(start / DEFAULT_SEGMENT_SIZE)
const n = Math.ceil((start + length) / DEFAULT_SEGMENT_SIZE)
Expand Down

0 comments on commit d0def9a

Please sign in to comment.