Method: Semian::CircuitBreaker#mark_success
- Defined in:
- lib/semian/circuit_breaker.rb
#mark_success ⇒ Object
79 80 81 82 83 84 |
# File 'lib/semian/circuit_breaker.rb', line 79 def mark_success return unless half_open? @successes.increment transition_to_close if success_threshold_reached? end |