fix connections leak (#3219)

* fix connections leak

* fix compilation
This commit is contained in:
Andronik Ordian
2021-06-12 17:35:14 +02:00
committed by GitHub
parent c864f2165d
commit b79f0ae6af
@@ -189,6 +189,7 @@ impl Network for Arc<NetworkService<Block, Hash>> {
}
async fn remove_from_peers_set(&mut self, protocol: Cow<'static, str>, multiaddresses: HashSet<Multiaddr>) -> Result<(), String> {
sc_network::NetworkService::remove_peers_from_reserved_set(&**self, protocol.clone(), multiaddresses.clone())?;
sc_network::NetworkService::remove_from_peers_set(&**self, protocol, multiaddresses)
}