add random delay
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
a66e9db94c
commit
c6b9c70d4d
|
@ -329,9 +329,7 @@ async function fullMarketMaker() {
|
|||
});
|
||||
|
||||
// Random delay to startup
|
||||
if (Math.random() >= 0.5) {
|
||||
await new Promise((r) => setTimeout(r, control.interval / 2));
|
||||
}
|
||||
await new Promise((r) => setTimeout(r, control.interval / Math.random()));
|
||||
|
||||
// Loop indefinitely
|
||||
while (control.isRunning) {
|
||||
|
|
Loading…
Reference in New Issue