You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Merge pull request #1215 from abramz/patch-1
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
|
||||
return new Error('Retry time exhausted');
|
||||
}
|
||||
if (options.times_connected > 10) {
|
||||
if (options.attempt > 10) {
|
||||
// End reconnecting with built in error
|
||||
return undefined;
|
||||
}
|
||||
|
Reference in New Issue
Block a user