lib/httpx/plugins/retries.rb in httpx-0.12.0 vs lib/httpx/plugins/retries.rb in httpx-0.13.0
- old
+ new
@@ -53,10 +53,10 @@
end.new(options).merge(max_retries: MAX_RETRIES)
end
module InstanceMethods
def max_retries(n)
- branch(default_options.with_max_retries(n.to_i))
+ with(max_retries: n.to_i)
end
private
def fetch_response(request, connections, options)