Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify API by only using non-const connect callbacks #142

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Dec 18, 2024

Remove valkeyAsyncSetConnectCallbackNC since it was first added in hiredis for backwards-compatibility reasons,
and let valkeyAsyncSetConnectCallback use the non-const connect callback prototype.

Includes the removal of the cluster version valkeyClusterAsyncSetConnectCallbackNC and updates of tests.

Signed-off-by: Björn Svensson <[email protected]>
@zuiderkwast
Copy link
Collaborator

There's a typo in redisClutserAsyncSetConnectCallback.

@bjosv
Copy link
Collaborator Author

bjosv commented Dec 19, 2024

Well spotted, seems like the spellchecker in CI work quite fine as well.

Signed-off-by: Björn Svensson <[email protected]>
Copy link
Collaborator

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@michael-grunder michael-grunder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The original weirdness was a bit of a hack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants