Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
Dmitry Novotochinov 2018-02-07 19:42:19 +03:00 committed by Eric Dvorsak
parent ddb15863f1
commit faa690950f
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
1 changed files with 3 additions and 3 deletions

View File

@ -229,9 +229,9 @@
;; Run immediately on first run, add delay before retry
(let [delay (cond
(zero? retries) 0
(< retries 3) 300
(< retries 10) 1000
:else 5000)]
(< retries 3) 300
(< retries 10) 1000
:else 5000)]
(if (> retries 100)
(log/error "Number of retries for fetching peers exceed" wnode)
(js/setTimeout