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

Start debouncing pool.fill() calls #292

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

sylwiaszunejko
Copy link
Collaborator

This PR introduces the mechanism to ignore request to call pool.fill() if there is already one call scheduled, but not being executed yet.

Fixes: #258

@sylwiaszunejko sylwiaszunejko self-assigned this Oct 4, 2024
connectionpool.go Outdated Show resolved Hide resolved
@sylwiaszunejko sylwiaszunejko force-pushed the debounce_fill branch 3 times, most recently from df44974 to 448a423 Compare October 7, 2024 08:13
chan_debouncer/chan_debouncer_test.go Outdated Show resolved Hide resolved
chan_debouncer/go.mod Outdated Show resolved Hide resolved
connectionpool.go Outdated Show resolved Hide resolved
chan_debouncer/chan_debouncer.go Outdated Show resolved Hide resolved
chan_debouncer/chan_debouncer.go Outdated Show resolved Hide resolved
chan_debouncer/chan_debouncer.go Outdated Show resolved Hide resolved
chan_debouncer/chan_debouncer.go Outdated Show resolved Hide resolved
@sylwiaszunejko sylwiaszunejko force-pushed the debounce_fill branch 2 times, most recently from 3f429d6 to 98afaee Compare October 7, 2024 14:10
@sylwiaszunejko sylwiaszunejko force-pushed the debounce_fill branch 3 times, most recently from 25e7813 to 66e7714 Compare October 7, 2024 14:43
This commit introduces ne package chan_debouncer that
implements debouncing login for given fn() and tests it.
It is used to ignore requests to call `pool.fill()` if
there is already one call scheduled, but not being executed
yet.
@dkropachev dkropachev merged commit d76e5b3 into scylladb:master Oct 7, 2024
1 check passed
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.

Start debouncing pool.fill() calls
2 participants