mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
server start setTimeout
This commit is contained in:
@@ -39,9 +39,13 @@ export class StratumV1Service implements OnModuleInit {
|
|||||||
await this.clientService.deleteAll();
|
await this.clientService.deleteAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
process.env.STRATUM_PORTS.split(',').forEach(port =>{
|
// wait for all the other processes to init for an even connection distribution
|
||||||
this.startSocketServer(parseInt(port));
|
setTimeout(() => {
|
||||||
});
|
process.env.STRATUM_PORTS.split(',').forEach(port =>{
|
||||||
|
this.startSocketServer(parseInt(port));
|
||||||
|
});
|
||||||
|
}, (10000));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user