You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-11 22:42:42 +03:00
better cluster nodes discorvery strategy after MOVED error, add PubSub test
This commit is contained in:
@@ -61,7 +61,7 @@ export default class RedisCluster {
|
||||
if (err.message.startsWith('ASK')) {
|
||||
// TODO
|
||||
} else if (err.message.startsWith('MOVED')) {
|
||||
await this.#slots.discover();
|
||||
await this.#slots.discover(client);
|
||||
|
||||
if (redirections < (this.#options.maxCommandRedirections ?? 16)) {
|
||||
return this.sendCommand(args, firstKeyIndex, isReadonly, redirections + 1);
|
||||
|
Reference in New Issue
Block a user