pub fn unban_peer(&self, peer_addr: &SocketAddr) {
		match self.get_peer(*peer_addr) {
			Ok(_) => {
				if self.is_banned(*peer_addr) {
					if let Err(e) = self.update_state(*peer_addr, State::Healthy) {
						error!(LOGGER, "Couldn't unban {}: {:?}", peer_addr, e);
					}
				} else {
					error!(LOGGER, "Couldn't unban {}: peer is not banned", peer_addr);
				}
			}
			Err(e) => error!(LOGGER, "Couldn't unban {}: {:?}", peer_addr, e),
		};
	}
/// Unban a peer, checks if it exists and banned then unban
Unban a peer, checks if it exists and banned then unban
Unban a peer checks if it exists and banned then unban
pub fn unban_peer(&self, peer_addr: &SocketAddr) {
		match self.get_peer(*peer_addr) {
			Ok(_) => {
				if self.is_banned(*peer_addr) {
					if let Err(e) = self.update_state(*peer_addr, State::Healthy) {
						error!(LOGGER, "Couldn't unban {}: {:?}", peer_addr, e);
					}
				} else {
					error!(LOGGER, "Couldn't unban {}: peer is not banned", peer_addr);
				}
			}
			Err(e) => error!(LOGGER, "Couldn't unban {}: {:?}", peer_addr, e),
		};
	}
pub fn unban_peer ( & self , peer_addr : & SocketAddr ) { match self . get_peer ( * peer_addr ) { Ok ( _ ) => { if self . is_banned ( * peer_addr ) { if let Err ( e ) = self . update_state ( * peer_addr , State :: Healthy ) { error ! ( LOGGER " " peer_addr e ) ; } } else { error ! ( LOGGER " " peer_addr ) ; } } Err ( e ) => error ! ( LOGGER " " peer_addr e ) , } ; }
Unban a peer, checks if it exists and banned then unban
Unban a peer checks if it exists and banned then unban
&self
peer_addr
&SocketAddr