You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
change times_connected
to attempt
in the retry_strategy
This commit is contained in:
@@ -232,7 +232,7 @@ var client = redis.createClient({
|
|||||||
// End reconnecting after a specific timeout and flush all commands with a individual error
|
// End reconnecting after a specific timeout and flush all commands with a individual error
|
||||||
return new Error('Retry time exhausted');
|
return new Error('Retry time exhausted');
|
||||||
}
|
}
|
||||||
if (options.times_connected > 10) {
|
if (options.attempt > 10) {
|
||||||
// End reconnecting with built in error
|
// End reconnecting with built in error
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user