diff options
author | Kristján Valur Jónsson <sweskman@gmail.com> | 2022-07-08 12:32:41 +0000 |
---|---|---|
committer | Kristján Valur Jónsson <sweskman@gmail.com> | 2022-07-08 13:52:43 +0000 |
commit | f69fac7690fb22a7fc19dba61ef70e5f79ccb2e9 (patch) | |
tree | 6681c79bbaf0d8f5cdc47d217aa4f832fe87a967 /async.h | |
parent | 005d7edebe098bcc90dd0c0003c5710e60d44b63 (diff) |
Drop `const` on redisAsyncContext in redisConnectCallback
Since the callback is now re-entrant, it can call apis such as redisAsyncDisconnect()
Diffstat (limited to 'async.h')
-rw-r--r-- | async.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ typedef struct redisCallbackList { /* Connection callback prototypes */ typedef void (redisDisconnectCallback)(const struct redisAsyncContext*, int status); -typedef void (redisConnectCallback)(const struct redisAsyncContext*, int status); +typedef void (redisConnectCallback)(struct redisAsyncContext*, int status); typedef void(redisTimerCallback)(void *timer, void *privdata); /* Context for an async connection to Redis */ |