Skip to content

Commit 7ab0804

Browse files
authored
Clarify reconnecting delay
Without clarification `delay` can mean two things: time to the next attempt (wrong) or time passed from the previous attempt (correct). The wrong interpretation is tempting because it makes easy to print "Trying to reconnect in {delay} ms."
1 parent e9ff1c2 commit 7ab0804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ emitted.
180180

181181
`client` will emit `reconnecting` when trying to reconnect to the Redis server
182182
after losing the connection. Listeners are passed an object containing `delay`
183-
(in ms) and `attempt` (the attempt #) attributes.
183+
(in ms from the previous try) and `attempt` (the attempt #) attributes.
184184

185185
### "error"
186186

0 commit comments

Comments
 (0)