From a304d6ef19663187bb73ab19f330786eba3c14e9 Mon Sep 17 00:00:00 2001 From: 0xFugue <119708655+0xFugue@users.noreply.github.com> Date: Sun, 22 Jan 2023 12:13:47 +0530 Subject: [PATCH] expo back off added to common --- waku/common/commons.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/waku/common/commons.go b/waku/common/commons.go index e39aeff..3098811 100644 --- a/waku/common/commons.go +++ b/waku/common/commons.go @@ -11,10 +11,14 @@ const PortRange = 1000 const GraceWait = 10 // percentage const InterPubSubDelay = 25 // seconds + const DnsDiscoveryUrl = "enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.waku.nodes.status.im" const NameServer = "1.1.1.1" const LocalHost = "0.0.0.0" +const ExpBackOffInit time.Duration = 10*time.Second // 10s, 20s, 40s, 80s, 160s +const ExpBackOffRetries int = 5 + type Config struct { LogLevel string Ofname string