fix peer_remove & peer_add event handler (#27)

This commit is contained in:
Sijie.Sun
2024-03-06 23:52:56 +08:00
committed by GitHub
parent 278a4846f1
commit 5f30747f62
3 changed files with 12 additions and 6 deletions
-2
View File
@@ -146,8 +146,6 @@ impl Peer {
impl Drop for Peer {
fn drop(&mut self) {
self.shutdown_notifier.notify_one();
self.global_ctx
.issue_event(GlobalCtxEvent::PeerRemoved(self.peer_node_id));
tracing::info!("peer {} drop", self.peer_node_id);
}
}