refactor(core): Remove event bus channel (no-changelog) (#9663)

This commit is contained in:
Iván Ovejero
2024-06-11 10:02:23 +02:00
committed by GitHub
parent cc4e46eae4
commit aaa78435b0
8 changed files with 9 additions and 57 deletions

View File

@@ -1,9 +1,5 @@
import { Service } from 'typedi';
import {
COMMAND_REDIS_CHANNEL,
EVENT_BUS_REDIS_CHANNEL,
WORKER_RESPONSE_REDIS_CHANNEL,
} from './RedisServiceHelper';
import { COMMAND_REDIS_CHANNEL, WORKER_RESPONSE_REDIS_CHANNEL } from './RedisServiceHelper';
import { RedisServiceBaseReceiver } from './RedisServiceBaseClasses';
@Service()
@@ -44,10 +40,6 @@ export class RedisServicePubSubSubscriber extends RedisServiceBaseReceiver {
});
}
async subscribeToEventLog(): Promise<void> {
await this.subscribe(EVENT_BUS_REDIS_CHANNEL);
}
async subscribeToCommandChannel(): Promise<void> {
await this.subscribe(COMMAND_REDIS_CHANNEL);
}
@@ -56,10 +48,6 @@ export class RedisServicePubSubSubscriber extends RedisServiceBaseReceiver {
await this.subscribe(WORKER_RESPONSE_REDIS_CHANNEL);
}
async unSubscribeFromEventLog(): Promise<void> {
await this.unsubscribe(EVENT_BUS_REDIS_CHANNEL);
}
async unSubscribeFromCommandChannel(): Promise<void> {
await this.unsubscribe(COMMAND_REDIS_CHANNEL);
}