configurable cooldown
This commit is contained in:
@@ -408,7 +408,7 @@ const main = async (): Promise<void> => {
|
|||||||
const state = spotMarketRedisMap.get(marketIndex);
|
const state = spotMarketRedisMap.get(marketIndex);
|
||||||
if (state) {
|
if (state) {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
if (now - state.lastRotationTime > 30500000 && !state.lock) {
|
if (now - state.lastRotationTime > ROTATION_COOLDOWN && !state.lock) {
|
||||||
state.lastRotationTime = now;
|
state.lastRotationTime = now;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user