You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Disable readOnly for cluster s/pubsub client 4.7 (#2951)
This commit is contained in:
@@ -535,7 +535,7 @@ export default class RedisClusterSlots<
|
||||
|
||||
this.pubSubNode = {
|
||||
address: node.address,
|
||||
client: this.#createClient(node, true)
|
||||
client: this.#createClient(node, false)
|
||||
.then(async client => {
|
||||
if (toResubscribe) {
|
||||
await Promise.all([
|
||||
@@ -574,7 +574,7 @@ export default class RedisClusterSlots<
|
||||
}
|
||||
|
||||
#initiateShardedPubSubClient(master: MasterNode<M, F, S>) {
|
||||
const promise = this.#createClient(master, true)
|
||||
const promise = this.#createClient(master, false)
|
||||
.then(client => {
|
||||
client.on('server-sunsubscribe', async (channel, listeners) => {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user