MORE TIMING GO BRRT
This commit is contained in:
parent
63251383d8
commit
23358db0b0
8
index.js
8
index.js
|
@ -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)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue