class Aws::Plugins::RetryErrors::Handler

def request_bookkeeping(context, response, error_inspector)

retry quota is updated if the request is successful (both modes)
maxsendrate is updated if on adaptive mode and based on response
def request_bookkeeping(context, response, error_inspector)
  config = context.config
  if response.successful?
    config.retry_quota.release(
      context.metadata[:retries][:capacity_amount]
    )
  end
  if config.retry_mode == 'adaptive'
    is_throttling_error = error_inspector.throttling_error?
    config.client_rate_limiter.update_sending_rate(is_throttling_error)
  end
end