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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/redis_client/circuit_breaker.rb +2 -1
- data/lib/redis_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e14494ff0e910564d0afcc8dea365b35e428c73364d4da0c31c84f8a9ada8d8b
|
4
|
+
data.tar.gz: dacf316c8c4893b1d0fd95e010a010837485825390fbd83b1620f8cc6dff6985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 - @
|
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
|
data/lib/redis_client/version.rb
CHANGED
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.
|
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-
|
10
|
+
date: 2025-08-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: connection_pool
|