Skip to content

fix(sliding window): implicitly set half-open delay#14

Merged
costela merged 4 commits intomainfrom
leo.antunes/fix-non-closing-sliding-window
Jan 25, 2024
Merged

fix(sliding window): implicitly set half-open delay#14
costela merged 4 commits intomainfrom
leo.antunes/fix-non-closing-sliding-window

Conversation

@costela
Copy link
Member

@costela costela commented Jan 24, 2024

A previous refactoring of the circuit+breaker meant a sliding window circuit without explicit half-open would never leave the open state, unlike the docs indicated.

This PR also fixes an unrelated bug: the prometheus extension was not accounting for dropped calls.

We were avoiding the call in the open-case, so any wrapper expecting it would not work (e.g. prom metrics)
A previous refactoring of the circuit+breaker meant a sliding window circuit without explicit half-open would never leave the open state, unlike the docs indicated.
@costela costela force-pushed the leo.antunes/fix-non-closing-sliding-window branch from 40aa75b to 30044d1 Compare January 24, 2024 22:03
Copy link
Member

@obitech obitech left a comment

Choose a reason for hiding this comment

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

LGTM

@costela costela merged commit e31cdf5 into main Jan 25, 2024
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

Comments