add max dialing attempts

This commit is contained in:
tycho garen
2022-06-15 09:31:21 -04:00
parent 68840b3d15
commit 0b7cfa77a3
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -230,6 +230,7 @@ func createPeerManager(
SelfAddress: selfAddr,
MaxConnected: maxConns,
MaxConnectedUpgrade: maxUpgradeConns,
MaxFailedDialAttempts: 1024,
MaxPeers: maxUpgradeConns + 2*maxConns,
MinRetryTime: 250 * time.Millisecond,
MaxRetryTime: 30 * time.Minute,