mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-04-11 21:39:24 +02:00
server start setTimeout
This commit is contained in:
parent
34eb0ca0f2
commit
d8e087f720
@ -39,9 +39,13 @@ export class StratumV1Service implements OnModuleInit {
|
||||
await this.clientService.deleteAll();
|
||||
}
|
||||
|
||||
process.env.STRATUM_PORTS.split(',').forEach(port =>{
|
||||
this.startSocketServer(parseInt(port));
|
||||
});
|
||||
// wait for all the other processes to init for an even connection distribution
|
||||
setTimeout(() => {
|
||||
process.env.STRATUM_PORTS.split(',').forEach(port =>{
|
||||
this.startSocketServer(parseInt(port));
|
||||
});
|
||||
}, (10000));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user