lib/httpx/plugins/retries.rb in httpx-0.18.7 vs lib/httpx/plugins/retries.rb in httpx-0.19.0
- old
+ new
@@ -94,11 +94,11 @@
response.is_a?(ErrorResponse) && __retryable_error?(response.error)
)
# rubocop:enable Style/MultilineTernaryOperator
)
response.close if response.respond_to?(:close)
- request.retries -= 1
log { "failed to get response, #{request.retries} tries to go..." }
+ request.retries -= 1
request.transition(:idle)
retry_after = options.retry_after
retry_after = retry_after.call(request, response) if retry_after.respond_to?(:call)