1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

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."
This commit is contained in:
Akseli Palén
2018-06-21 14:18:29 +03:00
committed by GitHub
parent e9ff1c26e7
commit 7ab0804a27

View File

@@ -180,7 +180,7 @@ emitted.
`client` will emit `reconnecting` when trying to reconnect to the Redis server
after losing the connection. Listeners are passed an object containing `delay`
(in ms) and `attempt` (the attempt #) attributes.
(in ms from the previous try) and `attempt` (the attempt #) attributes.
### "error"