From 642f33008fe4fa65d4cd4eec441af1e0d50d6dca Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Tue, 20 Nov 2018 16:16:22 +0100
Subject: [PATCH] [fix] `sync`: Wait up to 30s for downloading node selection

---
 app/lib/common-libs/constants.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/lib/common-libs/constants.ts b/app/lib/common-libs/constants.ts
index 973eb95cd..bfe7264cc 100755
--- a/app/lib/common-libs/constants.ts
+++ b/app/lib/common-libs/constants.ts
@@ -316,7 +316,7 @@ export const CommonConstants = {
 
   DEFAULT_NON_WOT_PEERS_LIMIT: 100, // Number of non-wot peers accepted in our peer document pool
 
-  WAIT_P2P_CANDIDATE_HEARTBEAT: 5000, // Wait X seconds for a node to answer about its state
+  WAIT_P2P_CANDIDATE_HEARTBEAT: 30 * 1000, // Wait X seconds for a node to answer about its state
 
   MAX_READING_SLOTS_FOR_FILE_SYNC: 20, // Number of file reading in parallel
 }
-- 
GitLab