From 586aa877da175a8410ad57f8110fe07b248c2dea Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Wed, 25 Mar 2020 01:40:18 -0700 Subject: [PATCH] change delay to 10s retry --- js/modules/loki_app_dot_net_api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index 5b4db12b6..143d27d6b 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -49,8 +49,9 @@ const sendToProxy = async ( // use nodes that support more than 1mb const randSnode = await lokiSnodeAPI.getRandomProxySnodeAddress(); if (randSnode === false) { + log.warn('proxy random snode pool is not ready, retrying 10s', endpoint); // no nodes in the pool yet, give it some time and retry - await timeoutDelay(1000); + await timeoutDelay(10000); return sendToProxy(srvPubKey, endpoint, pFetchOptions, options); } const url = `https://${randSnode.ip}:${randSnode.port}/file_proxy`;