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

Move sleep into goroutine in LazyDo #659

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

justinmir
Copy link
Contributor

This moves the sleep of up to threshold out of the caller's request path. This allows callers to use LazyDo without sleeping for up to threshold when called in succession.

This allows requests to connections that fail to return immediately instead of waiting for a second when they are selected to lazily perform the topology refresh.

Discussed here: #658

This moves the sleep of up to `threshold` out of the caller's request
path. This allows callers to use `LazyDo` without sleeping for up to
`threshold` when called in succession.

This allows requests to connections that fail to return immediately
instead of waiting for a second when they are selected to lazily perform
the topology refresh.
singleflight.go Outdated Show resolved Hide resolved
@rueian rueian merged commit 0633e2c into redis:main Nov 1, 2024
27 checks passed
@rueian
Copy link
Collaborator

rueian commented Nov 1, 2024

Thanks @justinmir!

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.

2 participants