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

chore: refactor some code and remove obsolete variable

This commit is contained in:
Ruben Bridgewater
2017-05-28 05:21:42 +02:00
parent 39da7878d4
commit 579e080ad5
7 changed files with 62 additions and 57 deletions

View File

@ -149,6 +149,14 @@ function handleReply (client, reply, command) {
return reply
}
function setReconnectDefaults (client) {
client.retryTimer = null
client.retryTotaltime = 0
client.retryDelay = 100
client.attempts = 1
client.ready = false
}
module.exports = {
replyToStrings,
replyToObject,
@ -157,5 +165,6 @@ module.exports = {
clone: convenienceClone,
replyInOrder,
warn,
handleReply
handleReply,
setReconnectDefaults
}