/// The method reacts to a disconnect event event for the peer with the
/// given node ID.
The method reacts to a disconnect event event for the peer with the
given node ID.
The method reacts to a disconnect event event for the peer with the given node ID .
fn peer_connection_down(&self, peer_id: NodeId) {
        self.metrics.connection_down_events.inc();
        let now = SystemTime::now();
        let mut current_peers = self.current_peers.lock().unwrap();
        if let Some(peer_context) = current_peers.get_mut(&peer_id) {
            peer_context.disconnect_time = Some(now);
            trace!(
                self.log,
                "Gossip On Disconnect event with peer: {:?} at time {:?}",
                peer_id,
                now
            );
        };
    }
fn peer_connection_down ( & self , peer_id : NodeId ) { self . metrics . connection_down_events . inc ( ) ; let now = SystemTime :: now ( ) ; let mut current_peers = self . current_peers . lock ( ) . unwrap ( ) ; if let Some ( peer_context ) = current_peers . get_mut ( & peer_id ) { peer_context . disconnect_time = Some ( now ) ; trace ! ( self log " " peer_id now ) ; } ; }
The method reacts to a disconnect event event for the peer with the
given node ID.
The method reacts to a disconnect event event for the peer with the given node ID .
&self
peer_id
NodeId