From 510d94a4f898af86454f24633e8296bba95934b9 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Mon, 26 Feb 2024 11:18:48 -0800 Subject: [PATCH] configurable cooldown --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bc939be..e05e454 100644 --- a/src/index.ts +++ b/src/index.ts @@ -408,7 +408,7 @@ const main = async (): Promise => { const state = spotMarketRedisMap.get(marketIndex); if (state) { const now = Date.now(); - if (now - state.lastRotationTime > 30500000 && !state.lock) { + if (now - state.lastRotationTime > ROTATION_COOLDOWN && !state.lock) { state.lastRotationTime = now; return true; }