summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGuy Korland <gkorland@gmail.com>2018-09-13 15:42:17 +0300
committerGitHub <noreply@github.com>2018-09-13 15:42:17 +0300
commit62015d4fb0805f350906b088a0c1036f8c5120cb (patch)
tree1bbe74c0ad7fed2a0113a6667106602d9f98dfcc /src/modules
parentd23cae5f062ee41e7c866d9872960cb436e567b4 (diff)
downloadredis-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/modules')
-rw-r--r--src/modules/hellocluster.c2
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 */