Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit fb4396a

Browse files
committed
fix(cache): Modify incorrect status code
1 parent 9ca174c commit fb4396a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/backend_redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static status_t redis_set(redisContext* c, const char* const key,
5757
redisReply* reply = redisCommand(c, "SETNX %b %b", key, FLEX_TRIT_SIZE_243,
5858
value, FLEX_TRIT_SIZE_8019);
5959
if (!reply->integer) {
60-
ret = SC_CCLIENT_FAILED_RESPONSE;
60+
ret = SC_CACHE_FAILED_RESPONSE;
6161
}
6262

6363
freeReplyObject(reply);

0 commit comments

Comments
 (0)