mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
[fix] fixed the un-refactor bug.
This commit is contained in:
parent
733280d9cb
commit
af15b285fa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user