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

feat: enter halfOpen state on reinitialization if required #720

Merged
merged 2 commits into from
Jan 19, 2023

Conversation

lance
Copy link
Member

@lance lance commented Jan 18, 2023

When a circuit is reinitialized with state from a previous instance, if the previous circuit was closed but the reset timeout has passed since reinitialization, the circuit should enter halfOpen immediately.

Fixes: #719

Signed-off-by: Lance Ball lball@redhat.com

When a circuit is reinitialized with state from a previous instance, if
the previous circuit was closed but the reset timeout has passed since
reinitialization, the circuit should enter halfOpen immediately.

Fixes: nodeshift#719

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance requested a review from lholmquist January 18, 2023 22:04
@coveralls
Copy link

Pull Request Test Coverage Report for Build 3953307506

  • 9 of 9 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 98.473%

Totals Coverage Status
Change from base Build 3903352634: 0.2%
Covered Lines: 335
Relevant Lines: 335

💛 - Coveralls

Node.js 14 does not support Object.hasOwn(), so tests need to use the
older/deprecated(?) hasOwnProperty().

Signed-off-by: Lance Ball <lball@redhat.com>
Copy link
Member

@lholmquist lholmquist left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks

@lholmquist lholmquist merged commit f20c63c into nodeshift:main Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: resetTimeout and half-open state without a timer.
3 participants