From b75b6aa4babd50acc517d2891bb1d7dc787e40d1 Mon Sep 17 00:00:00 2001 From: "Gustavo A. Salazar" Date: Thu, 15 Dec 2022 16:04:37 +0000 Subject: [PATCH] eslint fix --- scripts/create-sitemap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/create-sitemap.js b/scripts/create-sitemap.js index d88c3d763..c91c28d4f 100644 --- a/scripts/create-sitemap.js +++ b/scripts/create-sitemap.js @@ -15,6 +15,7 @@ const BASE_URL = `${API_URL}/entry/{DB}/?page_size=200`; const DATABASES = ['interpro', 'pfam']; const ONE_SEC = 1000; +const TEN_SEC = 10000; const ONE_MIN = 60000; const status = { @@ -64,7 +65,7 @@ const main = async function* (startURL) { if (next) await sleep(ONE_SEC); } catch (Exception) { process.stdout.write('there was a fetch error, tryin again in 10 SEC'); - await sleep(ONE_SEC * 10); + await sleep(TEN_SEC); } } };