add random delay
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
b57b330d1f
commit
a66e9db94c
|
@ -328,6 +328,11 @@ async function fullMarketMaker() {
|
|||
onExit(client, group, mangoAccount, Array.from(marketContexts.values()));
|
||||
});
|
||||
|
||||
// Random delay to startup
|
||||
if (Math.random() >= 0.5) {
|
||||
await new Promise((r) => setTimeout(r, control.interval / 2));
|
||||
}
|
||||
|
||||
// Loop indefinitely
|
||||
while (control.isRunning) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue