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

Custom checker for half-open state like ReadyToTrip #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ferryvg
Copy link

@ferryvg ferryvg commented Feb 28, 2020

No description provided.

@coveralls
Copy link

coveralls commented Feb 28, 2020

Coverage Status

Coverage increased (+0.03%) to 98.974% when pulling 4f079cb on ferryvg:feature/detailed-check-on-half-open into 92b9680 on sony:master.

@ferryvg
Copy link
Author

ferryvg commented Feb 28, 2020

@YoshiyukiMineo

@vtolstov
Copy link

gentle ping..

cb.setState(StateOpen, now)
cb.counts.onFailure()
ok, nowOpen := cb.readyToClose(cb.counts)
if !ok && nowOpen {

Choose a reason for hiding this comment

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

I think this could be refactored as:

		if ok, nowOpen := cb.readyToClose(cb.counts); !ok && nowOpen {
			cb.setState(StateOpen, now)
		}

@kubudi
Copy link

kubudi commented Mar 27, 2024

Can we move this forward, it's a very basic need and the change looks straightforward @chiendo97

@ferryvg we can take over the changes if you want?

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.

5 participants