mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 14:45:28 +01:00
reboot unfurler periodically
This commit is contained in:
parent
6fc645a454
commit
9aa778e44e
@ -50,6 +50,12 @@ class Server {
|
||||
this.canonicalHost = canonical;
|
||||
|
||||
this.startServer();
|
||||
|
||||
setTimeout(async () => {
|
||||
logger.info(`killing myself now`);
|
||||
await this.stopServer();
|
||||
process.exit(0);
|
||||
}, 3600_000 * (1 + Math.random()))
|
||||
}
|
||||
|
||||
async startServer() {
|
||||
|
Loading…
Reference in New Issue
Block a user