File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
crates/apollo_network/src/peer_manager Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments