mirror of
https://github.com/fluencelabs/redis
synced 2025-03-16 15:40:49 +00:00
Fixed typo in getClientLimitClassByName()
This commit is contained in:
parent
a30a8ae7ba
commit
c715c9b8bf
@ -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