summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/GlobalEventService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-09 17:09:27 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-09 17:09:27 +0900
commit39cf80e19f10676b263004e0a1402fdc5a9613f9 (patch)
treea39d41c80ef6b33dc1a4be12ebd2fbe00f89bf11 /packages/backend/src/core/GlobalEventService.ts
parentfix(backend): ストリーミングのLTLチャンネルでサーバー側に... (diff)
downloadmisskey-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.ts6
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,
}));