From 75597cc3bf58c9424f3e446951330df13ec92ba9 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Thu, 13 Sep 2018 15:42:17 +0300 Subject: [PATCH] No need to return "OK" No need to return "+OK" in this case since the result is an Array of all the nodes --- src/modules/hellocluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */