only delete clients once

This commit is contained in:
Ben Wilson 2023-08-03 23:23:32 -04:00
parent 03150f90df
commit 018eec17f2

View File

@ -33,7 +33,9 @@ export class StratumV1Service implements OnModuleInit {
async onModuleInit(): Promise<void> {
//await this.clientStatisticsService.deleteAll();
await this.clientService.deleteAll();
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
await this.clientService.deleteAll();
}
this.startSocketServer();
}