pub async fn remove_from_priority_group(&self, group_id: String, peers: HashSet<Multiaddr>) -> Result<(), String> {
		let peers = self.split_multiaddr_and_peer_id(peers)?;
		for (peer_id, _) in peers.into_iter() {
			self.peerset.remove_from_priority_group(group_id.clone(), peer_id);
		}
		Ok(())
	}
/// Remove peers from a peerset priority group.
///
/// Each `Multiaddr` must end with a `/p2p/` component containing the `PeerId`.
///
/// Returns an `Err` if one of the given addresses is invalid or contains an
/// invalid peer ID (which includes the local peer ID).
//
// NOTE: even though this function is currently sync, it's marked as async for
// future-proofing, see https://github.com/paritytech/substrate/pull/7247#discussion_r502263451.
// NOTE: technically, this function only needs `Vec<PeerId>`, but we use `Multiaddr` here for convenience.
Remove peers from a peerset priority group.

Returns an `Err` if one of the given addresses is invalid or contains an
invalid peer ID (which includes the local peer ID).


Remove peers from a peerset priority group . Returns an ` Err ` if one of the given addresses is invalid or contains an invalid peer ID ( which includes the local peer ID ) .
pub async fn remove_from_priority_group(&self, group_id: String, peers: HashSet<Multiaddr>) -> Result<(), String> {
		let peers = self.split_multiaddr_and_peer_id(peers)?;
		for (peer_id, _) in peers.into_iter() {
			self.peerset.remove_from_priority_group(group_id.clone(), peer_id);
		}
		Ok(())
	}
pub async fn remove_from_priority_group ( & self , group_id : String , peers : HashSet < Multiaddr > ) -> Result < ( ) , String > { let peers = self . split_multiaddr_and_peer_id ( peers ) ? ; for ( peer_id , _ ) in peers . into_iter ( ) { self . peerset . remove_from_priority_group ( group_id . clone ( ) , peer_id ) ; } Ok ( ( ) ) }
Remove peers from a peerset priority group.
Remove peers from a peerset priority group .
&self
group_id
String
peers
HashSet<Multiaddr>
&self
group_id
String
peers
HashSet<Multiaddr>