From cf5e186bcdd2d35a812678111bd9b45dccfc0ae1 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Wed, 25 Mar 2020 01:39:02 -0700 Subject: [PATCH] change delay to 10s for initial retries, also remove space between time and units --- js/expire.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/js/expire.js b/js/expire.js index c068921e5..a116cc14b 100644 --- a/js/expire.js +++ b/js/expire.js @@ -16,7 +16,7 @@ LokiFileServerAPI.secureRpcPubKey ); - let nextWaitSeconds = 1; + let nextWaitSeconds = 10; const checkForUpgrades = async () => { const result = await window.tokenlessFileServerAdnAPI.serverRequest( 'loki/v1/version/client/desktop' @@ -67,9 +67,7 @@ return res(expiredVersion); } log.info( - 'Delaying sending checks for', - nextWaitSeconds, - 's, no version yet' + `Delaying sending checks for ${nextWaitSeconds}s, no version yet` ); setTimeout(waitForVersion, nextWaitSeconds * 1000); return true; @@ -85,11 +83,7 @@ window.extension.expired = cb => { if (expiredVersion === null) { // just give it another second - log.info( - 'Delaying expire banner determination for', - nextWaitSeconds, - 's' - ); + log.info(`Delaying expire banner determination for ${nextWaitSeconds}s`); setTimeout(() => { window.extension.expired(cb); }, nextWaitSeconds * 1000);