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

Fix minor async client bug. #862

Merged
merged 1 commit into from
Jun 12, 2023
Merged

Conversation

nihohit
Copy link
Contributor

@nihohit nihohit commented Jun 12, 2023

connections.remove(addr), in the old code always returned None, because connections in the fold operation was an empty map. This change ensures that connections from the external connections variable will be used in the fold operation.

len was removed from SlotMap because it's no longer in use.

`connections.remove(addr),` in the old code always returned `None`,
because `connections` in the fold operation was an empty map.
This change ensures that connections from the external `connections`
variable will be used in the fold operation.
@jaymell
Copy link
Contributor

jaymell commented Jun 12, 2023

Thanks for fixing this!

@jaymell jaymell merged commit e95f02f into redis-rs:main Jun 12, 2023
9 checks passed
@nihohit nihohit deleted the fix-map branch June 12, 2023 15:02
altanozlu pushed a commit to altanozlu/redis-rs that referenced this pull request Aug 16, 2023
`connections.remove(addr),` in the old code always returned `None`,
because `connections` in the fold operation was an empty map.
This change ensures that connections from the external `connections`
variable will be used in the fold operation.
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.

None yet

2 participants