lib/sidekiq/circuit_breaker/manager.rb in sidekiq-circuit-breaker-0.1.4 vs lib/sidekiq/circuit_breaker/manager.rb in sidekiq-circuit-breaker-0.1.5

- old
+ new

@@ -13,11 +13,11 @@ count = register_failure open if count >= @options.failure_threshold end def open? - circuit_opened?(@scope) + circuit_open?(@scope) end def closed? !open? end @@ -28,11 +28,11 @@ def open open_circuit(@scope, @options.max_open_time) end - def time_to_open - time_to_open_the_circuit(@scope) + def time_to_close + time_to_close_the_circuit(@scope) end def register_failure register_failure_for_scope(@scope) end