mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-27 06:18:06 +09:00
[backend] Use configured prefix for redis messaging
This commit is contained in:
parent
db306e2829
commit
1e60ed665d
@ -17,6 +17,6 @@ export function createConnection() {
|
||||
}
|
||||
|
||||
export const subscriber = createConnection();
|
||||
subscriber.subscribe(config.host);
|
||||
subscriber.subscribe(config.redis.prefix ?? config.host);
|
||||
|
||||
export const redisClient = createConnection();
|
||||
|
@ -37,7 +37,7 @@ class Publisher {
|
||||
: { type: type, body: value };
|
||||
|
||||
redisClient.publish(
|
||||
config.host,
|
||||
config.redis.prefix ?? config.host,
|
||||
JSON.stringify({
|
||||
channel: channel,
|
||||
message: message,
|
||||
|
Loading…
Reference in New Issue
Block a user