Fixed typo in getClientLimitClassByName()
This commit is contained in:
parent
c026bde035
commit
f70afca5e5
@ -1228,7 +1228,7 @@ int getClientLimitClass(redisClient *c) {
|
||||
int getClientLimitClassByName(char *name) {
|
||||
if (!strcasecmp(name,"normal")) return REDIS_CLIENT_LIMIT_CLASS_NORMAL;
|
||||
else if (!strcasecmp(name,"slave")) return REDIS_CLIENT_LIMIT_CLASS_SLAVE;
|
||||
else if (!strcasecmp(name,"pubsub")) return REDIS_CLIENT_LIMIT_CLASS_SLAVE;
|
||||
else if (!strcasecmp(name,"pubsub")) return REDIS_CLIENT_LIMIT_CLASS_PUBSUB;
|
||||
else return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user