mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-04-13 22:39:25 +02:00
remove socket server delay
This commit is contained in:
parent
f465b837f5
commit
864867ffd4
@ -30,14 +30,13 @@ export class StratumV1Service implements OnModuleInit {
|
||||
|
||||
async onModuleInit(): Promise<void> {
|
||||
|
||||
if (process.env.MASTER == 'true') {
|
||||
if (process.env.MASTER == 'true') {
|
||||
await this.clientService.deleteAll();
|
||||
}
|
||||
setTimeout(() => {
|
||||
process.env.STRATUM_PORTS.split(',').forEach(port =>{
|
||||
this.startSocketServer(parseInt(port));
|
||||
});
|
||||
}, 1000 * 10)
|
||||
}
|
||||
|
||||
process.env.STRATUM_PORTS.split(',').forEach(port =>{
|
||||
this.startSocketServer(parseInt(port));
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user