Skip to content

Commit 68d672c

Browse files
committed
Use error_threshold_timeout when filtering observed errors
1 parent 03d2e35 commit 68d672c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis_client/circuit_breaker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def refresh_state
7979

8080
def record_error
8181
now = RedisClient.now
82-
expiry = now - @error_timeout
82+
expiry = now - @error_threshold_timeout
8383
@lock.synchronize do
8484
if @state == :closed
8585
@errors.reject! { |t| t < expiry }

0 commit comments

Comments
 (0)