Skip to content

Custom checker for half-open state like ReadyToTrip#28

Open
ferryvg wants to merge 3 commits into
sony:masterfrom
ferryvg:feature/detailed-check-on-half-open
Open

Custom checker for half-open state like ReadyToTrip#28
ferryvg wants to merge 3 commits into
sony:masterfrom
ferryvg:feature/detailed-check-on-half-open

Conversation

@ferryvg

@ferryvg ferryvg commented Feb 28, 2020

Copy link
Copy Markdown

No description provided.

@coveralls

coveralls commented Feb 28, 2020

Copy link
Copy Markdown

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

ferryvg commented Feb 28, 2020

Copy link
Copy Markdown
Author

@YoshiyukiMineo

@vtolstov

Copy link
Copy Markdown

gentle ping..

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

Copy link
Copy Markdown

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

kubudi commented Mar 27, 2024

Copy link
Copy Markdown

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