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 thread throttler #stride API #131

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

kucaahbe
Copy link

Lhm::Throttler::ThreadsRunning was missing the #stride method, which this PR fixes.
Tests and more usage examples were added as well.

DEFAULT_INITIAL_TIMEOUT = 0.1
DEFAULT_HEALTHY_RANGE = (0..50)

attr_accessor :timeout_seconds, :healthy_range, :connection
attr_accessor :stride

Choose a reason for hiding this comment

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

Nit: would be cleaner to append :stride to the existing attr_accessor definition

Copy link
Author

Choose a reason for hiding this comment

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

thanks, updated

@kucaahbe kucaahbe force-pushed the fix/thread-throtter-2 branch from 1022962 to 23d8b6b Compare November 4, 2022 10:19
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.

4 participants