1
0
mirror of synced 2025-02-12 15:56:44 +00:00

fix dialing to new peer

This commit is contained in:
Youngjoon Lee 2024-11-28 16:29:39 +09:00
parent 8503484be6
commit 271cb54b60
No known key found for this signature in database
GPG Key ID: 303963A54A81DD4D

View File

@ -182,8 +182,9 @@ where
connection: libp2p::swarm::CloseConnection::All,
});
self.remove_negotiated_peer(&peer_id, None);
self.malicious_peers.insert(peer_id);
self.schedule_dial();
if self.malicious_peers.insert(peer_id) {
self.schedule_dial();
}
});
}