Skip to content

Fix thread throttler #stride API#131

Merged
coding-chimp merged 1 commit into
Shopify:masterfrom
Syndicode:fix/thread-throtter-2
Sep 15, 2023
Merged

Fix thread throttler #stride API#131
coding-chimp merged 1 commit into
Shopify:masterfrom
Syndicode:fix/thread-throtter-2

Conversation

@kucaahbe

Copy link
Copy Markdown

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

Comment thread lib/lhm/throttler/threads_running.rb Outdated
DEFAULT_HEALTHY_RANGE = (0..50)

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

Copy link
Copy Markdown

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
Copy Markdown
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