class Semian::CircuitBreaker
def push_time(window, time: Time.now)
def push_time(window, time: Time.now) window.reject! { |err_time| err_time + @error_threshold_timeout < time.to_i } window << time.to_i end
def push_time(window, time: Time.now) window.reject! { |err_time| err_time + @error_threshold_timeout < time.to_i } window << time.to_i end