aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/swarm/bootstrap.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/swarm/bootstrap.rs b/src/swarm/bootstrap.rs
index 7626d53..a0e4db7 100644
--- a/src/swarm/bootstrap.rs
+++ b/src/swarm/bootstrap.rs
@@ -549,6 +549,18 @@ async fn resolve_seeds(
crate::swarm::roots::seed_found(state, &peer);
if let Err(error) = send_hello_once(state, &peer).await {
warn!(peer = %peer, error = %format!("{error:#}"), "Initial HELLO failed; will retry");
+ // Again with the seeds that don't resolve yet: nothing else says
+ // HELLO again to a node that is no neighbour (`peer::worker`).
+ if let Some(peer_state) = state.get_peer_state(&peer).await {
+ let mut peer_state = peer_state.lock().await;
+ if matches!(
+ peer_state.hello_state,
+ crate::state::HelloState::AwaitingReply { .. }
+ ) {
+ peer_state.hello_state = crate::state::HelloState::NotSent;
+ }
+ }
+ still.push(seed);
}
}
Err(error) => {