mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-04-14 14:59:33 +02:00
only delete clients once
This commit is contained in:
parent
03150f90df
commit
018eec17f2
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user