fn remove_node(&self, node: NodeId, registry_version: RegistryVersion) {
        self.peer_manager.remove_peer(node, registry_version);
        self.receive_check_caches.write().unwrap().remove(&node);
        self.prioritizer
            .clear_peer_adverts(node, AdvertTrackerFinalAction::Abort)
            .unwrap_or_else(|e| {
                info!(
                    self.log,
                    "Failed to clear peer adverts when removing peer {:?} with error {:?}", node, e
                )
            });
    }
/// This method removes the given node from peer manager and clears adverts.
This method removes the given node from peer manager and clears adverts.
This method removes the given node from peer manager and clears adverts .
fn remove_node(&self, node: NodeId, registry_version: RegistryVersion) {
        self.peer_manager.remove_peer(node, registry_version);
        self.receive_check_caches.write().unwrap().remove(&node);
        self.prioritizer
            .clear_peer_adverts(node, AdvertTrackerFinalAction::Abort)
            .unwrap_or_else(|e| {
                info!(
                    self.log,
                    "Failed to clear peer adverts when removing peer {:?} with error {:?}", node, e
                )
            });
    }
fn remove_node ( & self , node : NodeId , registry_version : RegistryVersion ) { self . peer_manager . remove_peer ( node , registry_version ) ; self . receive_check_caches . write ( ) . unwrap ( ) . remove ( & node ) ; self . prioritizer . clear_peer_adverts ( node , AdvertTrackerFinalAction :: Abort ) . unwrap_or_else ( | e | { info ! ( self log " " node e ) } ) ; }
This method removes the given node from peer manager and clears adverts.
This method removes the given node from peer manager and clears adverts .
&self
node
NodeId
registry_version
RegistryVersion
&self
node
NodeId
registry_version
RegistryVersion