[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:
Dmitry Markin
2023-08-02 16:37:12 +03:00
committed by GitHub
parent 367098bae5
commit 253c505edc
5 changed files with 217 additions and 190 deletions
+7 -1
View File
@@ -105,7 +105,13 @@ impl Network for TestNetwork {
Ok(())
}
async fn remove_from_peers_set(&mut self, _protocol: ProtocolName, _: Vec<PeerId>) {}
async fn remove_from_peers_set(
&mut self,
_protocol: ProtocolName,
_: Vec<PeerId>,
) -> Result<(), String> {
Ok(())
}
async fn start_request<AD: AuthorityDiscovery>(
&self,