There was an error while loading. Please reload this page.
1 parent 3778705 commit 738e036Copy full SHA for 738e036
1 file changed
overlay/src/main.rs
@@ -546,7 +546,11 @@ impl App {
546
let cp = self.configured_peers.read().await;
547
let addrs = cp.addrs.clone();
548
let listen_port = cp.listen_port;
549
- let expected_peers = addrs.len().saturating_sub(1); // exclude self
+ // Expect a connection for every configured address. Self is
550
+ // not normally in the list; if it is, the extra safety-net
551
+ // tick is harmless (self-dials and connected peers are
552
+ // skipped when re-dialing).
553
+ let expected_peers = addrs.len();
554
// Build set of hostnames that have a known PeerId — these
555
// are handled by PeerId-based dials and must NOT be raw-dialed.
556
let hostnames_with_known_peer: HashSet<String> = {
0 commit comments