class Faraday::Request::Retry

def calculate_sleep_amount(retries, env)

def calculate_sleep_amount(retries, env)
  retry_after     = calculate_retry_after(env)
  retry_interval  = calculate_retry_interval(retries)
  return if retry_after && retry_after > @options.max_interval
  retry_after && retry_after >= retry_interval ? retry_after : retry_interval
end