Commit af15b285 authored by filipecosta90's avatar filipecosta90
Browse files

[fix] fixed the un-refactor bug.

parent 733280d9
......@@ -1126,9 +1126,10 @@ int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) {
int replyWithStatus(RedisModuleCtx *ctx, const char *msg, char *prefix) {
client *c = moduleGetReplyClient(ctx);
if (c == NULL) return REDISMODULE_OK;
const size_t len = strlen(msg);
addReplyProto(c,"-",1);
addReplyProto(c,msg,len);
const size_t msgLen = strlen(msg);
const size_t prefixLen = strlen(prefix);
addReplyProto(c,prefix,prefixLen);
addReplyProto(c,msg,msgLen);
addReplyProto(c,"\r\n",2);
return REDISMODULE_OK;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment