File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11# Unreleased
22
3+ - Fix retry logic not to attempt to retry on an open circuit breaker. Fix #227 .
4+
35# 0.23.1
46
57- Fix a potential crash in ` hiredis-client ` when using subcriptions (` next_event ` ). See #221 .
Original file line number Diff line number Diff line change @@ -710,9 +710,14 @@ def ensure_connected(retryable: true)
710710 end
711711 rescue ConnectionError , ProtocolError => error
712712 preferred_error ||= error
713- preferred_error = error unless error . is_a? ( CircuitBreaker ::OpenCircuitError )
714713 close
715714
715+ if error . is_a? ( CircuitBreaker ::OpenCircuitError )
716+ raise preferred_error
717+ else
718+ preferred_error = error
719+ end
720+
716721 if !@disable_reconnection && config . retry_connecting? ( tries , error )
717722 tries += 1
718723 retry
You can’t perform that action at this time.
0 commit comments