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
@@ -77,4 +77,14 @@ public ADCircuitBreakerService init() {

return this;
}

public Boolean isOpen() {
Copy link
Contributor

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!

@jngz-es jngz-es merged commit c668920 into opendistro-for-elasticsearch:development 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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants