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: mark private variables as such and remove obsolete ones
This commit is contained in:
@@ -15,8 +15,8 @@ function onError (client, err) {
|
||||
}
|
||||
|
||||
// Count down pub sub mode if in entering modus
|
||||
if (client.pubSubMode > 1) {
|
||||
client.pubSubMode--
|
||||
if (client._pubSubMode > 1) {
|
||||
client._pubSubMode--
|
||||
}
|
||||
|
||||
const match = err.message.match(utils.errCode)
|
||||
@@ -40,7 +40,7 @@ function onResult (client, reply) {
|
||||
// If in monitor mode, all normal commands are still working and we only want to emit the streamlined commands
|
||||
// As this is not the average use case and monitor is expensive anyway, let's change the code here, to improve
|
||||
// the average performance of all other commands in case of no monitor mode
|
||||
if (client.monitoring) {
|
||||
if (client._monitoring) {
|
||||
var replyStr
|
||||
if (client.buffers && Buffer.isBuffer(reply)) {
|
||||
replyStr = reply.toString()
|
||||
@@ -58,10 +58,10 @@ function onResult (client, reply) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if (client.pubSubMode === 0) {
|
||||
if (client._pubSubMode === 0) {
|
||||
normalReply(client, reply)
|
||||
} else if (client.pubSubMode !== 1) {
|
||||
client.pubSubMode--
|
||||
} else if (client._pubSubMode !== 1) {
|
||||
client._pubSubMode--
|
||||
normalReply(client, reply)
|
||||
} else if (!(reply instanceof Array) || reply.length <= 2) {
|
||||
// Only PING and QUIT are allowed in this context besides the pub sub commands
|
||||
|
Reference in New Issue
Block a user