diff options
author | Guy Korland <gkorland@gmail.com> | 2018-09-13 15:42:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 15:42:17 +0300 |
commit | 62015d4fb0805f350906b088a0c1036f8c5120cb (patch) | |
tree | 1bbe74c0ad7fed2a0113a6667106602d9f98dfcc /src | |
parent | d23cae5f062ee41e7c866d9872960cb436e567b4 (diff) | |
download | redis-62015d4fb0805f350906b088a0c1036f8c5120cb.tar.gz |
No need to return "OK"
No need to return "+OK" in this case since the result is an Array of all the nodes
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/hellocluster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/hellocluster.c b/src/modules/hellocluster.c index 75d18f3e2..da3964d04 100644 --- a/src/modules/hellocluster.c +++ b/src/modules/hellocluster.c @@ -69,7 +69,7 @@ int ListCommand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int RedisModule_ReplyWithLongLong(ctx,port); } RedisModule_FreeClusterNodesList(ids); - return RedisModule_ReplyWithSimpleString(ctx, "OK"); + return REDISMODULE_OK; } /* Callback for message MSGTYPE_PING */ |