add max dialing attempts

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