redis-client 0.25.1 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6aec9020863506adfc7189ff46791f9e9a656ca9c4efd042d60b6d9d7eecbbc2
4
- data.tar.gz: 821d677e9cec0280ae9e982b78e7aa3116063f58d08f4f446c56bb8fdfeabcd6
3
+ metadata.gz: e14494ff0e910564d0afcc8dea365b35e428c73364d4da0c31c84f8a9ada8d8b
4
+ data.tar.gz: dacf316c8c4893b1d0fd95e010a010837485825390fbd83b1620f8cc6dff6985
5
5
  SHA512:
6
- metadata.gz: 39b8dd6d1c19c96f30dbc5f8391105037507704954a273d17ab8e25ace88a77ee3504038a8b595a2845b1657f79cffdd76143b34e3b67e01339654c1310c2b41
7
- data.tar.gz: 76b6500bf41a318ad3a71088dd3382c16039b2713adced7f511e67c45107e37ef7e1a286b19c10bc18f93292696c1cad8a51b705c930c3bb2d1784b8c67aadfe
6
+ metadata.gz: 00ef6af52d83d2b35a5a8e638cb001f98b16d5f9752c35c107e66665415ac108d728992bf879b5577ac72859af67c70c3b0c4b40c62da73aee5cca17122de23f
7
+ data.tar.gz: d9564edbac42517600787da3bcf3c929158e5a4d4e757f6b9ccff7cd6ee296637d89521adfbc902fc83ac880d53a155c289e3bbc09254bf32f8530cf3ab308dd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.25.2
4
+
5
+ - Fix circuit breakers to respect the `error_threshold_timeout` config is provided.
6
+ - Fix circuit breakers to clear errors when closing back.
7
+
3
8
  # 0.25.1
4
9
 
5
10
  - Fix Ruby driver TCP keep alive TTL. It was intended to be 120 seconds but was mistakenly set to 15 seconds.
@@ -79,7 +79,7 @@ class RedisClient
79
79
 
80
80
  def record_error
81
81
  now = RedisClient.now
82
- expiry = now - @error_timeout
82
+ expiry = now - @error_threshold_timeout
83
83
  @lock.synchronize do
84
84
  if @state == :closed
85
85
  @errors.reject! { |t| t < expiry }
@@ -100,6 +100,7 @@ class RedisClient
100
100
 
101
101
  @successes += 1
102
102
  if @successes >= @success_threshold
103
+ @errors.clear
103
104
  @state = :closed
104
105
  end
105
106
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RedisClient
4
- VERSION = "0.25.1"
4
+ VERSION = "0.25.2"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.1
4
+ version: 0.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-07-15 00:00:00.000000000 Z
10
+ date: 2025-08-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: connection_pool