Skip to content

More redis refactors #1477

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

Merged
merged 1 commit into from
Oct 4, 2024
Merged

More redis refactors #1477

merged 1 commit into from
Oct 4, 2024

Conversation

jaymell
Copy link
Contributor

@jaymell jaymell commented Oct 4, 2024

This removes a lot of the needless indirection/structs that were obscuring what should be a pretty simple thing -- i.e., the different variants for ConnectionManagers and RedisConnections.

Note also that by moving some of the query_async calls to the Cmd rather than the connection, we can completely remove the *Connection types and associated macros.

There's definitely some more cleanup that can be done here, but I think this is good for one PR.

This removes a lot of the needless indirection/structs that
were obscuring what should be a pretty simple thing -- i.e., the
different variants for `ConnectionManager`s and `RedisConnection`s.

Note also that by moving some of the `query_async` calls to the
`Cmd` rather than the connection, we can completely remove the
`*Connection` types and associated macros.

There's definitely some more cleanup that can be done here, but I
think this is good for one PR.
@jaymell jaymell marked this pull request as ready for review October 4, 2024 21:30
@jaymell jaymell requested a review from a team as a code owner October 4, 2024 21:30
Copy link
Contributor

@svix-onelson svix-onelson left a comment

Choose a reason for hiding this comment

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

👌🏻

@svix-james svix-james merged commit 4149c75 into svix:main Oct 4, 2024
6 checks passed
@jaymell jaymell deleted the redis-refactor-2 branch October 4, 2024 21:39
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