Skip to content

Commit

Permalink
revert: Revert out bounded service logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWaWaR committed Mar 21, 2019
1 parent 4a068b6 commit 3999aee
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions network/src/service/outbound_peer_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@ impl Stream for OutboundPeerService {
.network
.peer_store()
.read()
.random_peers(new_outbound as u32)
.peers_to_attempt(new_outbound as u32);
for (peer_id, addr) in attempt_peers
.into_iter()
.filter(|(peer_id, _addr)| {
self.network.get_peer_index(peer_id).is_none()
&& self.network.local_peer_id() != peer_id
})
.collect::<Vec<_>>();
for (peer_id, addr) in attempt_peers.into_iter() {
.filter(|(peer_id, _addr)| self.network.local_peer_id() != peer_id)
{
self.network.dial(&peer_id, addr);
}
}
Expand Down

0 comments on commit 3999aee

Please sign in to comment.