diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-07 11:20:14 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-07 11:20:14 +0900 |
| commit | ff6d9d28604d173b57bdb26b94ccd16bd0f4c4ba (patch) | |
| tree | 7d608de794ce10af14f954d753ce2d86501ca5c7 /packages/backend/src/core/AntennaService.ts | |
| parent | perf(backend): reduce db query (diff) | |
| download | misskey-ff6d9d28604d173b57bdb26b94ccd16bd0f4c4ba.tar.gz misskey-ff6d9d28604d173b57bdb26b94ccd16bd0f4c4ba.tar.bz2 misskey-ff6d9d28604d173b57bdb26b94ccd16bd0f4c4ba.zip | |
feat(backend): イベント用Redisを別サーバーに分離できるように
Diffstat (limited to 'packages/backend/src/core/AntennaService.ts')
| -rw-r--r-- | packages/backend/src/core/AntennaService.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/backend/src/core/AntennaService.ts b/packages/backend/src/core/AntennaService.ts index 4bd3f39af2..35266ac16d 100644 --- a/packages/backend/src/core/AntennaService.ts +++ b/packages/backend/src/core/AntennaService.ts @@ -27,8 +27,8 @@ export class AntennaService implements OnApplicationShutdown { @Inject(DI.redis) private redisClient: Redis.Redis, - @Inject(DI.redisSubscriber) - private redisSubscriber: Redis.Redis, + @Inject(DI.redisForPubsub) + private redisForPubsub: Redis.Redis, @Inject(DI.mutingsRepository) private mutingsRepository: MutingsRepository, @@ -52,12 +52,12 @@ export class AntennaService implements OnApplicationShutdown { this.antennasFetched = false; this.antennas = []; - this.redisSubscriber.on('message', this.onRedisMessage); + this.redisForPubsub.on('message', this.onRedisMessage); } @bindThis public onApplicationShutdown(signal?: string | undefined) { - this.redisSubscriber.off('message', this.onRedisMessage); + this.redisForPubsub.off('message', this.onRedisMessage); } @bindThis |