Skip to content

Commit 89c474d

Browse files
authored
Merge pull request #1215 from abramz/patch-1
change `times_connected` to `attempt` in the `retry_strategy`
2 parents 5d73f5e + 740d0e5 commit 89c474d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ var client = redis.createClient({
232232
// End reconnecting after a specific timeout and flush all commands with a individual error
233233
return new Error('Retry time exhausted');
234234
}
235-
if (options.times_connected > 10) {
235+
if (options.attempt > 10) {
236236
// End reconnecting with built in error
237237
return undefined;
238238
}

0 commit comments

Comments
 (0)