diff --git a/autonomi/src/client/mod.rs b/autonomi/src/client/mod.rs index 670d77dab1..7e94c66a82 100644 --- a/autonomi/src/client/mod.rs +++ b/autonomi/src/client/mod.rs @@ -124,7 +124,14 @@ impl Client { tracing::warn!("Some bootstrap addresses have no peer ID, skipping them"); } println!("TESTING: peers_with_p2p: {peers_with_p2p:?}"); - let _ = network.add_peer_addresses(peers_with_p2p).await; + let _ = network.add_peer_addresses(peers_with_p2p.clone()).await; + + for (_peer_id, addr) in peers_with_p2p { + if let Err(err) = network.dial(addr.clone()).await { + error!("Failed to dial addr={addr} with err: {err:?}"); + eprintln!("addr={addr} Failed to dial: {err:?}"); + }; + } Ok(Self { network,