Skip to content

Commit 740d0e5

Browse files
author
Andrew Shapro
authored
change times_connected to attempt in the retry_strategy
1 parent 5d73f5e commit 740d0e5

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)