Skip to content

Commit cefbfb4

Browse files
apollo_network: no blacklisting on unstable connection
1 parent 8ea94e0 commit cefbfb4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/apollo_network/src/peer_manager/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ impl PeerManager {
226226
}
227227
}
228228
ReputationModifier::Unstable => {
229-
self.pending_events.push(ToSwarm::GenerateEvent(
230-
ToOtherBehaviourEvent::PeerBlacklisted { peer_id },
231-
));
229+
// self.pending_events.push(ToSwarm::GenerateEvent(
230+
// ToOtherBehaviourEvent::PeerBlacklisted { peer_id },
231+
// ));
232232
peer.blacklist_peer(self.config.unstable_timeout_millis);
233233
}
234234
}

crates/apollo_network/src/peer_manager/peer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl Peer {
2727
}
2828

2929
pub fn blacklist_peer(&mut self, timeout_duration: Duration) {
30-
self.timed_out_until = get_instant_now() + timeout_duration;
30+
// self.timed_out_until = get_instant_now() + timeout_duration;
3131
info!(
3232
"Peer {:?} misbehaved. Blacklisting it for {:.3} seconds.",
3333
self.peer_id,

0 commit comments

Comments
 (0)