mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
Isolate API process from mining workers
This commit is contained in:
@@ -68,6 +68,11 @@ export class StratumV1Service implements OnModuleInit {
|
||||
|
||||
async onModuleInit(): Promise<void> {
|
||||
|
||||
if (process.env.API_ONLY == 'true') {
|
||||
console.log('API-only process skipping Stratum socket listeners');
|
||||
return;
|
||||
}
|
||||
|
||||
if (process.env.MASTER == 'true') {
|
||||
await this.clientService.deleteAll();
|
||||
await this.redisMessagingService?.clearClientPresence();
|
||||
|
||||
Reference in New Issue
Block a user