pub fn connected_peers(&self) -> Vec<Arc<Peer>> {
		let mut res = self
			.peers
			.read()
			.unwrap()
			.values()
			.filter(|p| p.is_connected())
			.cloned()
			.collect::<Vec<_>>();
		thread_rng().shuffle(&mut res);
		res
	}
/// Get vec of peers we are currently connected to.
Get vec of peers we are currently connected to.
Get vec of peers we are currently connected to .
pub fn connected_peers(&self) -> Vec<Arc<Peer>> {
		let mut res = self
			.peers
			.read()
			.unwrap()
			.values()
			.filter(|p| p.is_connected())
			.cloned()
			.collect::<Vec<_>>();
		thread_rng().shuffle(&mut res);
		res
	}
pub fn connected_peers ( & self ) -> Vec < Arc < Peer > > { let mut res = self . peers . read ( ) . unwrap ( ) . values ( ) . filter ( | p | p . is_connected ( ) ) . cloned ( ) . collect :: < Vec < _ > > ( ) ; thread_rng ( ) . shuffle ( & mut res ) ; res }
Get vec of peers we are currently connected to.
Get vec of peers we are currently connected to .
&self