refactor: use existing redis client
This commit is contained in:
parent
7320d2d020
commit
d13cb116bc
1 changed files with 1 additions and 2 deletions
|
|
@ -111,8 +111,7 @@ io.on("connection", function (socket) {
|
|||
});
|
||||
|
||||
socket.on("open_in_editor", (data) => {
|
||||
let s = get_redis_subscriber("redis_queue");
|
||||
s.publish("open_in_editor", JSON.stringify(data));
|
||||
subscriber.publish("open_in_editor", JSON.stringify(data));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue