Limit background services by process role

This commit is contained in:
Ben
2026-06-07 23:18:00 -04:00
parent 13106347b2
commit 4155335bb5
3 changed files with 15 additions and 2 deletions
+5 -1
View File
@@ -14,6 +14,10 @@ export class NotificationService implements OnModuleInit {
) { }
async onModuleInit(): Promise<void> {
if (process.env.MASTER !== 'true') {
return;
}
await this.discordService.notifyRestarted();
}
@@ -21,4 +25,4 @@ export class NotificationService implements OnModuleInit {
await this.discordService.notifySubscribersBlockFound(height, block, message);
await this.telegramService.notifySubscribersBlockFound(address, height, block, message);
}
}
}