-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove APIs for separate init and connect of async cluster contexts (#…
…165) Embed a `valkeyClusterContext` in a created `valkeyClusterAsyncContext` to be able to cast between these types. This enables users to access the async context in an event callback without using `privdata`, and we can remove the APIs previously kept just for this scenario: valkeyClusterAsyncContext *valkeyClusterAsyncContextInit(const valkeyClusterOptions *options); int valkeyClusterAsyncConnect(valkeyClusterAsyncContext *acc); int valkeyClusterAsyncSetEventCallback(valkeyClusterAsyncContext *acc, void(fn)(const valkeyClusterContext *cc, int event, void *privdata), Also removing the testcase based on `clusterclient_reconnect_async.c` since it was using the removed APIs. There is now a symmetry to how standalone contexts works, i.e. `valkeyAsyncContext` embeds the `valkeyContext`. Signed-off-by: Björn Svensson <[email protected]>
- Loading branch information
Showing
14 changed files
with
154 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.