mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
only delete clients once
This commit is contained in:
@@ -33,7 +33,9 @@ export class StratumV1Service implements OnModuleInit {
|
|||||||
async onModuleInit(): Promise<void> {
|
async onModuleInit(): Promise<void> {
|
||||||
|
|
||||||
//await this.clientStatisticsService.deleteAll();
|
//await this.clientStatisticsService.deleteAll();
|
||||||
|
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
|
||||||
await this.clientService.deleteAll();
|
await this.clientService.deleteAll();
|
||||||
|
}
|
||||||
|
|
||||||
this.startSocketServer();
|
this.startSocketServer();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user