lib/httpx/plugins/retries.rb in httpx-0.22.2 vs lib/httpx/plugins/retries.rb in httpx-0.22.3

- old
+ new

@@ -24,10 +24,10 @@ TLSError, TimeoutError, ConnectionError, Connection::HTTP2::GoawayError, ].freeze - DEFAULT_JITTER = ->(interval) { interval * (0.5 * (1 + rand)) } + DEFAULT_JITTER = ->(interval) { interval * ((rand + 1) * 0.5) } if ENV.key?("HTTPX_NO_JITTER") def self.extra_options(options) options.merge(max_retries: MAX_RETRIES) end