[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 Markinandparity-processbot authored and GitHub committed 2023-08-02 13:37:12 +00:00
1 parent 367098bae5
commit 253c505edc
5 files changed
+217 -190

No files matched your search

+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,