From 740d0e525d506231ecc36e21fac0d4b1e9d66b56 Mon Sep 17 00:00:00 2001 From: Andrew Shapro Date: Thu, 16 Mar 2017 14:44:37 -0700 Subject: [PATCH] change `times_connected` to `attempt` in the `retry_strategy` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b889d3271..44760cf31b 100644 --- a/README.md +++ b/README.md @@ -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; }