Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Circuit breaker #10

Merged

Conversation

jngz-es
Copy link
Contributor

@jngz-es jngz-es commented Dec 13, 2019

#9

@jngz-es jngz-es added the enhancement New feature or request label Dec 13, 2019
@jngz-es jngz-es self-assigned this Dec 13, 2019
@ylwu-amzn ylwu-amzn added this to Development in Ongoing Dec 13, 2019
@ylwu-amzn ylwu-amzn moved this from Development to Review in progress in Ongoing Dec 13, 2019
@@ -77,4 +77,14 @@ public ADCircuitBreakerService init() {

return this;
}

public Boolean isOpen() {
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion. This can also be written as stream().anyMatch(CircuitBreaker::isOpen) to be shorter and clearer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion, will rewrite it in next pr. Thanks Lai!

Ongoing automation moved this from Review in progress to Reviewer approved Dec 19, 2019
@jngz-es jngz-es merged commit c668920 into opendistro-for-elasticsearch:development Dec 27, 2019
Ongoing automation moved this from Reviewer approved to Done Dec 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Ongoing
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants