Skip to content

Commit

Permalink
Feedback: optimize _maybeWant with rcl
Browse files Browse the repository at this point in the history
  • Loading branch information
LuKks committed Jul 6, 2023
1 parent 4d08a39 commit d303f3b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/replicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,6 @@ class Peer {

onrange ({ drop, start, length }) {
const has = drop === false
const rangeStart = this.remoteBitfield.findFirst(!has, start)
const rangeLength = length - (rangeStart - start)

if (length === 1) {
this.remoteBitfield.setRange(start, length, has)
Expand Down

0 comments on commit d303f3b

Please sign in to comment.