From 9e30610ff3ae3045bfaa408589a5afd469efcb6f Mon Sep 17 00:00:00 2001 From: Diego Rodriguez Baquero Date: Mon, 6 Feb 2023 15:37:13 -0500 Subject: [PATCH] Refresh local nodes every 10 minutes, prefill slowly --- container/shim/src/modules/local_nodes.js | 2 +- container/shim/src/utils/prefill.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/container/shim/src/modules/local_nodes.js b/container/shim/src/modules/local_nodes.js index 1b213086..e5614196 100644 --- a/container/shim/src/modules/local_nodes.js +++ b/container/shim/src/modules/local_nodes.js @@ -22,5 +22,5 @@ export async function refreshLocalNodes() { } catch (err) { debug(`Failed to refresh local nodes: ${err.message}`); } - setTimeout(refreshLocalNodes, 5 * 60 * 1000); + setTimeout(refreshLocalNodes, 10 * 60 * 1000); } diff --git a/container/shim/src/utils/prefill.js b/container/shim/src/utils/prefill.js index 9be080a6..1096d7b5 100644 --- a/container/shim/src/utils/prefill.js +++ b/container/shim/src/utils/prefill.js @@ -21,7 +21,7 @@ export const prefillCache = () => { agent: new Agent({ rejectUnauthorized: false }), }); controller.abort(); - await setTimeoutPromise(1000); + await setTimeoutPromise(2000); } }