diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-09 17:09:27 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-09 17:09:27 +0900 |
| commit | 39cf80e19f10676b263004e0a1402fdc5a9613f9 (patch) | |
| tree | a39d41c80ef6b33dc1a4be12ebd2fbe00f89bf11 /packages/backend/src/core/GlobalEventService.ts | |
| parent | fix(backend): ストリーミングのLTLチャンネルでサーバー側に... (diff) | |
| download | misskey-39cf80e19f10676b263004e0a1402fdc5a9613f9.tar.gz misskey-39cf80e19f10676b263004e0a1402fdc5a9613f9.tar.bz2 misskey-39cf80e19f10676b263004e0a1402fdc5a9613f9.zip | |
fix(backend): イベント用redis分離が上手く動かない問題を修正
Diffstat (limited to 'packages/backend/src/core/GlobalEventService.ts')
| -rw-r--r-- | packages/backend/src/core/GlobalEventService.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/core/GlobalEventService.ts b/packages/backend/src/core/GlobalEventService.ts index 25c064a2b4..9f4de5f985 100644 --- a/packages/backend/src/core/GlobalEventService.ts +++ b/packages/backend/src/core/GlobalEventService.ts @@ -26,8 +26,8 @@ export class GlobalEventService { @Inject(DI.config) private config: Config, - @Inject(DI.redis) - private redisClient: Redis.Redis, + @Inject(DI.redisForPub) + private redisForPub: Redis.Redis, ) { } @@ -37,7 +37,7 @@ export class GlobalEventService { { type: type, body: null } : { type: type, body: value }; - this.redisClient.publish(this.config.host, JSON.stringify({ + this.redisForPub.publish(this.config.host, JSON.stringify({ channel: channel, message: message, })); |