MCPcopy Create free account
hub / github.com/F-Stack/f-stack / send_hello

Function send_hello

app/redis-6.2.6/deps/hiredis/test.c:150–158  ·  view source on GitHub ↗

Switch protocol */

Source from the content-addressed store, hash-verified

148
149/* Switch protocol */
150static void send_hello(redisContext *c, int version) {
151 redisReply *reply;
152 int expected;
153
154 reply = redisCommand(c, "HELLO %d", version);
155 expected = version == 3 ? REDIS_REPLY_MAP : REDIS_REPLY_ARRAY;
156 assert(reply != NULL && reply->type == expected);
157 freeReplyObject(reply);
158}
159
160/* Togggle client tracking */
161static void send_client_tracking(redisContext *c, const char *str) {

Callers 1

test_resp3_push_handlerFunction · 0.85

Calls 2

freeReplyObjectFunction · 0.85
redisCommandFunction · 0.70

Tested by

no test coverage detected