1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

fix(pubsub): Fixed cluster client pubsub logic

* Infer the cluster pubsub client read only mode from the node type

* Modify flag logic
This commit is contained in:
Hristo Temelski
2025-04-30 15:57:01 +03:00
committed by GitHub
parent 10ff6debab
commit 9459660d96

View File

@@ -518,7 +518,7 @@ export default class RedisClusterSlots<
node = index < this.masters.length ?
this.masters[index] :
this.replicas[index - this.masters.length],
client = this.#createClient(node, true);
client = this.#createClient(node, index >= this.masters.length);
this.pubSubNode = {
address: node.address,