lib/httpx/plugins/circuit_breaker/circuit.rb in httpx-0.21.0 vs lib/httpx/plugins/circuit_breaker/circuit.rb in httpx-0.21.1
- old
+ new
@@ -26,10 +26,10 @@
case @state
when :closed
nil
when :half_open
# return nothing or smth based on ratio
- return if Random::DEFAULT.rand >= @circuit_breaker_half_open_drip_rate
+ return if Random.rand >= @circuit_breaker_half_open_drip_rate
@response
when :open
@response