pub fn drop_node(&mut self, peer_id: &PeerId) {
		if let Some(info) = self.nodes_info.get(peer_id) {
			debug!(target: "sub-libp2p", "Dropping {:?} on purpose ({:?}, {:?})",
				peer_id, info.endpoint, info.client_version);
			self.swarm.drop_node(peer_id);
		}
	}
/// Disconnects a peer.
///
/// This is asynchronous and will not immediately close the peer.
/// Corresponding closing events will be generated once the closing actually happens.
Disconnects a peer.
This is asynchronous and will not immediately close the peer.
Corresponding closing events will be generated once the closing actually happens.
Disconnects a peer . This is asynchronous and will not immediately close the peer . Corresponding closing events will be generated once the closing actually happens .
pub fn drop_node(&mut self, peer_id: &PeerId) {
		if let Some(info) = self.nodes_info.get(peer_id) {
			debug!(target: "sub-libp2p", "Dropping {:?} on purpose ({:?}, {:?})",
				peer_id, info.endpoint, info.client_version);
			self.swarm.drop_node(peer_id);
		}
	}
pub fn drop_node ( & mut self , peer_id : & PeerId ) { if let Some ( info ) = self . nodes_info . get ( peer_id ) { debug ! ( target " " " " peer_id info endpoint info client_version ) ; self . swarm . drop_node ( peer_id ) ; } }
Disconnects a peer.
Disconnects a peer .
&mut self
peer_id
&PeerId
&mut self
peer_id
&PeerId