diff --git a/gatsby-node.js b/gatsby-node.js index 155630c..813728d 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -240,7 +240,7 @@ class Plugin { } if (count > 0) { - await sleep(randInt(1000, 8000)); + await sleep(Math.pow(2, count) * 1000); } } @@ -346,10 +346,6 @@ function warning(message) { Log.warning(message); } -function randInt(min, max) { - return Math.floor(Math.random() * (max - min + 1) + min); -} - function sleep(ms) { return new Promise((res) => setTimeout(res, ms)); }