Skip to content

Commit

Permalink
Shorten the PR diff size
Browse files Browse the repository at this point in the history
  • Loading branch information
unikmhz committed Aug 4, 2024
1 parent 9f485a0 commit 1dee2f5
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions hircluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -3034,6 +3034,17 @@ void *redisClustervCommand(redisClusterContext *cc, const char *format,
return reply;
}

void *redisClusterCommand(redisClusterContext *cc, const char *format, ...) {
va_list ap;
redisReply *reply = NULL;

va_start(ap, format);
reply = redisClustervCommand(cc, format, ap);
va_end(ap);

return reply;
}

void *redisClustervCommandToNode(redisClusterContext *cc,
redisClusterNode *node, const char *format,
va_list ap) {
Expand Down Expand Up @@ -3088,17 +3099,6 @@ void *redisClustervCommandToNode(redisClusterContext *cc,
return reply;
}

void *redisClusterCommand(redisClusterContext *cc, const char *format, ...) {
va_list ap;
redisReply *reply = NULL;

va_start(ap, format);
reply = redisClustervCommand(cc, format, ap);
va_end(ap);

return reply;
}

void *redisClusterCommandToNode(redisClusterContext *cc, redisClusterNode *node,
const char *format, ...) {
va_list ap;
Expand Down Expand Up @@ -3245,6 +3245,22 @@ int redisClustervAppendCommand(redisClusterContext *cc, const char *format,
return ret;
}

int redisClusterAppendCommand(redisClusterContext *cc, const char *format,
...) {
int ret;
va_list ap;

if (cc == NULL || format == NULL) {
return REDIS_ERR;
}

va_start(ap, format);
ret = redisClustervAppendCommand(cc, format, ap);
va_end(ap);

return ret;
}

int redisClustervAppendCommandToNode(redisClusterContext *cc,
redisClusterNode *node, const char *format,
va_list ap) {
Expand Down Expand Up @@ -3308,22 +3324,6 @@ int redisClustervAppendCommandToNode(redisClusterContext *cc,
return REDIS_ERR;
}

int redisClusterAppendCommand(redisClusterContext *cc, const char *format,
...) {
int ret;
va_list ap;

if (cc == NULL || format == NULL) {
return REDIS_ERR;
}

va_start(ap, format);
ret = redisClustervAppendCommand(cc, format, ap);
va_end(ap);

return ret;
}

int redisClusterAppendCommandToNode(redisClusterContext *cc,
redisClusterNode *node, const char *format,
...) {
Expand Down

0 comments on commit 1dee2f5

Please sign in to comment.