1
0
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:
Ruben Bridgewater
2017-03-18 11:56:23 -03:00
committed by GitHub

View File

@@ -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;
}