fn peer_addrs_received(&self, peer_addrs: Vec<SocketAddr>) {
		debug!(LOGGER, "Received {} peer addrs, saving.", peer_addrs.len());
		for pa in peer_addrs {
			if let Ok(e) = self.exists_peer(pa) {
				if e {
					continue;
				}
			}
			let peer = PeerData {
				addr: pa,
				capabilities: UNKNOWN,
				user_agent: "".to_string(),
				flags: State::Healthy,
			};
			if let Err(e) = self.save_peer(&peer) {
				error!(LOGGER, "Could not save received peer address: {:?}", e);
			}
		}
	}
/// A list of peers has been received from one of our peers.
A list of peers has been received from one of our peers.
A list of peers has been received from one of our peers .
fn peer_addrs_received(&self, peer_addrs: Vec<SocketAddr>) {
		debug!(LOGGER, "Received {} peer addrs, saving.", peer_addrs.len());
		for pa in peer_addrs {
			if let Ok(e) = self.exists_peer(pa) {
				if e {
					continue;
				}
			}
			let peer = PeerData {
				addr: pa,
				capabilities: UNKNOWN,
				user_agent: "".to_string(),
				flags: State::Healthy,
			};
			if let Err(e) = self.save_peer(&peer) {
				error!(LOGGER, "Could not save received peer address: {:?}", e);
			}
		}
	}
fn peer_addrs_received ( & self , peer_addrs : Vec < SocketAddr > ) { debug ! ( LOGGER " " peer_addrs len ( ) ) ; for pa in peer_addrs { if let Ok ( e ) = self . exists_peer ( pa ) { if e { continue ; } } let peer = PeerData { addr : pa , capabilities : UNKNOWN , user_agent : " " . to_string ( ) , flags : State :: Healthy , } ; if let Err ( e ) = self . save_peer ( & peer ) { error ! ( LOGGER " " e ) ; } } }
A list of peers has been received from one of our peers.
A list of peers has been received from one of our peers .
&self
peer_addrs
Vec<SocketAddr>