db tuning

This commit is contained in:
Ben
2023-09-30 14:54:42 -04:00
parent 0a03969f16
commit f6f65ab9dc
2 changed files with 11 additions and 3 deletions
+7 -2
View File
@@ -32,8 +32,13 @@ export class StratumV1Service implements OnModuleInit {
if (process.env.ENABLE_SOLO == 'true') {
//await this.clientStatisticsService.deleteAll();
await this.clientService.deleteAll();
this.startSocketServer();
if (process.env.NODE_APP_INSTANCE == '0') {
await this.clientService.deleteAll();
}
setTimeout(() => {
this.startSocketServer();
}, 1000 * 10)
}
}