Skip to content

Commit

Permalink
Build fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Revertron committed Jul 11, 2022
1 parent 20054e4 commit cd311f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/p2p/peers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ impl Peers {
if self.new_peers.is_empty() {
return;
}
self.new_peers.sort().dedup();
self.new_peers.sort();
self.new_peers.dedup();
let addr = self.new_peers.remove(0);
match self.connect_peer(&addr, registry, unique_token, yggdrasil_only) {
Ok(_) => {}
Expand Down

0 comments on commit cd311f7

Please sign in to comment.