No need to return "OK"

No need to return "+OK" in this case since the result is an Array of all the nodes
This commit is contained in:
Guy Korland 2018-09-13 15:42:17 +03:00 committed by GitHub
parent d23cae5f06
commit 62015d4fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */