Skip to content

Commit

Permalink
Refresh local nodes every 10 minutes, prefill slowly
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez Baquero committed Feb 6, 2023
1 parent 0b9207f commit 9e30610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion container/shim/src/modules/local_nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion container/shim/src/utils/prefill.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const prefillCache = () => {
agent: new Agent({ rejectUnauthorized: false }),
});
controller.abort();
await setTimeoutPromise(1000);
await setTimeoutPromise(2000);
}
}

Expand Down

0 comments on commit 9e30610

Please sign in to comment.