MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / __redisAsyncCopyError

Function __redisAsyncCopyError

deps/hiredis/async.c:156–163  ·  view source on GitHub ↗

We want the error field to be accessible directly instead of requiring * an indirection to the redisContext struct. */

Source from the content-addressed store, hash-verified

154/* We want the error field to be accessible directly instead of requiring
155 * an indirection to the redisContext struct. */
156static void __redisAsyncCopyError(redisAsyncContext *ac) {
157 if (!ac)
158 return;
159
160 redisContext *c = &(ac->c);
161 ac->err = c->err;
162 ac->errstr = c->errstr;
163}
164
165redisAsyncContext *redisAsyncConnectWithOptions(const redisOptions *options) {
166 redisOptions myOptions = *options;

Callers 3

__redisAsyncDisconnectFunction · 0.85
redisAsyncSetTimeoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected