make kick more responsive

This commit is contained in:
bgkillas 2024-11-10 09:58:13 -05:00
parent ef732da3a2
commit 4a135d00f6
9 changed files with 371 additions and 113 deletions

View file

@ -49,6 +49,10 @@ impl Peer {
connection_manager.start()?;
Ok(Peer { shared })
}
pub fn remove(&self, peer: PeerId) {
self.shared.remote_peers.remove(&peer);
}
/// Host at a specified `bind_addr`.
pub fn host(