You've already forked node-redis
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:
11
lib/utils.js
11
lib/utils.js
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user