1
0
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:
Andrew Shapro
2017-03-16 14:44:37 -07:00
committed by GitHub
parent 5d73f5efa2
commit 740d0e525d

View File

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