Created
August 16, 2016 08:37
-
-
Save jacoelho/8a59adffdb2f837f948e19428aa9bf93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (c *Circuit) isOpen() bool { | |
if c.shouldRetry() { | |
return false | |
} else { | |
return c.failuresCounter > c.FailThreshold | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment