remove socket server delay

This commit is contained in:
Benjamin Wilson
2025-02-25 19:06:33 -05:00
parent f465b837f5
commit 864867ffd4
+6 -7
View File
@@ -30,14 +30,13 @@ export class StratumV1Service implements OnModuleInit {
async onModuleInit(): Promise<void> { async onModuleInit(): Promise<void> {
if (process.env.MASTER == 'true') { if (process.env.MASTER == 'true') {
await this.clientService.deleteAll(); await this.clientService.deleteAll();
} }
setTimeout(() => {
process.env.STRATUM_PORTS.split(',').forEach(port =>{ process.env.STRATUM_PORTS.split(',').forEach(port =>{
this.startSocketServer(parseInt(port)); this.startSocketServer(parseInt(port));
}); });
}, 1000 * 10)
} }