diff --git a/crates/subcoin-network/src/peer_manager.rs b/crates/subcoin-network/src/peer_manager.rs index 75dca49..49f33b6 100644 --- a/crates/subcoin-network/src/peer_manager.rs +++ b/crates/subcoin-network/src/peer_manager.rs @@ -480,7 +480,7 @@ where } pub(crate) fn evict(&mut self, peer_id: PeerId, reason: Error) { - self.peer_manager.disconnect(peer_id, reason); + self.disconnect(peer_id, reason); self.last_eviction = Instant::now(); }