Skip to content

Instantly share code, notes, and snippets.

@jacoelho
Last active August 16, 2016 08:41
Show Gist options
  • Save jacoelho/616ebe47142b7cf3fc087635372b9c52 to your computer and use it in GitHub Desktop.
Save jacoelho/616ebe47142b7cf3fc087635372b9c52 to your computer and use it in GitHub Desktop.
// close circuit
func (c *Circuit) close() {
c.failuresCounter = 0
c.retriesCounter = 0
}
// increase failures counter circuit
func (c *Circuit) incrementFailures() {
c.failuresCounter++
c.retriesCounter++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment