mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
[companion] Get rid of Peerset compatibility layer (#7355)
* Update `NetworkPeers` trait interface
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -236,8 +236,13 @@ mod tests {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn remove_from_peers_set(&mut self, _protocol: ProtocolName, peers: Vec<PeerId>) {
|
||||
async fn remove_from_peers_set(
|
||||
&mut self,
|
||||
_protocol: ProtocolName,
|
||||
peers: Vec<PeerId>,
|
||||
) -> Result<(), String> {
|
||||
self.peers_set.retain(|elem| !peers.contains(elem));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn start_request<AD: AuthorityDiscovery>(
|
||||
|
||||
Reference in New Issue
Block a user