Skip to content

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