MORE TIMING GO BRRT

This commit is contained in:
Christopher Cookman 2023-05-19 19:19:32 -06:00
parent 63251383d8
commit 23358db0b0
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -196,13 +196,13 @@ function updateStatus(addr, port, msg) {
setTimeout(() => { setTimeout(() => {
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`); console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`);
updateStatus(addr, port, msg); updateStatus(addr, port, msg);
}, 10000) }, 5000)
}).catch((err) => { }).catch((err) => {
console.log(`${colors.red("[ERROR]")} ${err}`); console.log(`${colors.red("[ERROR]")} ${err}`);
setTimeout(() => { setTimeout(() => {
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`); console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`);
updateStatus(addr, port, msg); updateStatus(addr, port, msg);
}, 10000) }, 5000)
}); });
} else { } else {
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline.`); console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline.`);
@ -250,13 +250,13 @@ function updateStatus(addr, port, msg) {
setTimeout(() => { setTimeout(() => {
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`); console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`);
updateStatus(addr, port, msg); updateStatus(addr, port, msg);
}, 10000) }, 5000)
}).catch((err) => { }).catch((err) => {
console.log(`${colors.red("[ERROR]")} ${err}`); console.log(`${colors.red("[ERROR]")} ${err}`);
setTimeout(() => { setTimeout(() => {
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`); console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`);
updateStatus(addr, port, msg); updateStatus(addr, port, msg);
}, 10000) }, 5000)
}); });
} }
}) })