Skip to content

Commit

Permalink
fix: setNode no longer adds node twice when force is true
Browse files Browse the repository at this point in the history
  • Loading branch information
emmacasolin committed Jun 14, 2022
1 parent d7f2419 commit b9717e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nodes/NodeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ class NodeManager {
// Updating the refreshBucket timer
this.refreshBucketUpdateDeadline(bucketIndex);
return;
}
if (blocking) {
} else if (blocking) {
this.logger.debug(
`Bucket was full and blocking was true, garbage collecting old nodes to add ${nodesUtils.encodeNodeId(
nodeId,
Expand Down

0 comments on commit b9717e1

Please sign in to comment.