Skip to content

Commit

Permalink
protocols/kad/query/peers/closest: Consider K_VALUE nodes at init
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Apr 16, 2020
1 parent 6ea7f23 commit 4c0c60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/kad/src/query/peers/closest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl ClosestPeersIter {
let state = PeerState::NotContacted;
(distance, Peer { key, state })
})
.take(ALPHA_VALUE.into()));
.take(K_VALUE.into()));

// The iterator initially makes progress by iterating towards the target.
let state = State::Iterating { no_progress : 0 };
Expand Down

0 comments on commit 4c0c60f

Please sign in to comment.