lib/routemaster/api_client_circuit.rb in routemaster-drain-3.6.8 vs lib/routemaster/api_client_circuit.rb in routemaster-drain-3.7.0

- old
+ new

@@ -23,10 +23,9 @@ def enabled? ENV.fetch('ROUTEMASTER_ENABLE_API_CLIENT_CIRCUIT', 'NO') =~ /\A(YES|TRUE|ON|1)\Z/i end - def circuit Circuitbox.circuit(@circuit_name, { sleep_window: configuration_setting(@circuit_name, 'ROUTEMASTER_CIRCUIT_BREAKER_SLEEP_WINDOW', 60).to_i, time_window: configuration_setting(@circuit_name, 'ROUTEMASTER_CIRCUIT_BREAKER_TIME_WINDOW', 120).to_i, volume_threshold: configuration_setting(@circuit_name, 'ROUTEMASTER_CIRCUIT_BREAKER_VOLUME_THRESHOLD', 50).to_i,