lib/httpx/plugins/rate_limiter.rb in httpx-0.13.2 vs lib/httpx/plugins/rate_limiter.rb in httpx-0.14.0

- old
+ new

@@ -13,10 +13,10 @@ # module RateLimiter class << self RATE_LIMIT_CODES = [429, 503].freeze - def load_dependencies(klass) + def configure(klass) klass.plugin(:retries, retry_change_requests: true, retry_on: method(:retry_on_rate_limited_response), retry_after: method(:retry_after_rate_limit)) end