We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8af9634 commit ec50c50Copy full SHA for ec50c50
1 file changed
crates/net/p2p/src/lib.rs
@@ -397,6 +397,8 @@ async fn handle_peer_redial(server: &mut P2PServer, peer_id: PeerId) {
397
398
if let Some(addr) = server.bootnode_addrs.get(&peer_id) {
399
info!(%peer_id, "Redialing disconnected bootnode");
400
+ // NOTE: this dial does some checks and adds a pending outbound connection attempt.
401
+ // It does NOT block. If the dial fails, we'll later get an OutgoingConnectionError event.
402
if let Err(e) = server.swarm.dial(addr.clone()) {
403
warn!(%peer_id, %e, "Failed to redial bootnode, will retry");
404
// Schedule another redial attempt
0 commit comments