We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2154423 commit 1f7b831Copy full SHA for 1f7b831
packages/core/src/lib/connection_manager.ts
@@ -199,9 +199,9 @@ export class ConnectionManager
199
conn.tags = Array.from(new Set([...conn.tags, ...tags]));
200
});
201
202
- // instead of deleting the peer from the peer store, we set the dial attempt to Infinity
+ // instead of deleting the peer from the peer store, we set the dial attempt to -1
203
// this helps us keep track of peers that have been dialed before
204
- this.dialAttemptsForPeer.set(peerId.toString(), Infinity);
+ this.dialAttemptsForPeer.set(peerId.toString(), -1);
205
206
// Dialing succeeded, break the loop
207
break;
0 commit comments