From cd767e125a456b9145bb8bf46865cd2947adf431 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 5 Sep 2018 08:56:47 +0200 Subject: [PATCH] Reduce max backoff to 60 seconds --- substrate/network-libp2p/src/topology.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/network-libp2p/src/topology.rs b/substrate/network-libp2p/src/topology.rs index 8ac0acd858031..3cd3456bea3e5 100644 --- a/substrate/network-libp2p/src/topology.rs +++ b/substrate/network-libp2p/src/topology.rs @@ -46,7 +46,7 @@ const FIRST_CONNECT_FAIL_BACKOFF: Duration = Duration::from_secs(2); /// Every time we fail to connect to an address, multiply the backoff by this constant. const FAIL_BACKOFF_MULTIPLIER: u32 = 2; /// We need a maximum value for the backoff, overwise we risk an overflow. -const MAX_BACKOFF: Duration = Duration::from_secs(30 * 60); +const MAX_BACKOFF: Duration = Duration::from_secs(60); // TODO: should be merged with the Kademlia k-buckets