class Semian::CircuitBreaker

def push_time

def push_time
  time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
  if error_threshold_timeout_enabled
    @errors.reject! { |err_time| err_time + @error_threshold_timeout < time }
  end
  @errors << time
end