Skip to content

Commit

Permalink
test(autonomi): debug handshaketimedout failure
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed Dec 11, 2024
1 parent 7c73817 commit bb79053
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autonomi/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bb79053

Please sign in to comment.