semian 0.11.6 → 0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/semian/redis.rb +8 -0
- data/lib/semian/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: e136dd51d96e89f74e2ea3b4d838a86a265dd097c44c61601daa35dbdf60aba0
|
4
|
+
data.tar.gz: 9f42e7eba02dc6f94547d5a8c98ace41672abc9c4ec4ce093c5c8e4c160163a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd3861895b3aaf7de70a693c55276d9fc290cfd51a0460491759d106e0a9b9ea1d72bfbb7c3d31b7cf44bdbde3d2c7ce28742a25032375432c570aef325164da
|
7
|
+
data.tar.gz: 6cad2df1f48a514ee8b0122ce1b15fa9c6af84c76dfa0b435205086f6fd1d70d60c87f00eb33282caffab8bafb4500d5a099e8a4a599d3905064d6f89e555d4b
|
data/lib/semian/redis.rb
CHANGED
@@ -16,6 +16,14 @@ class Redis
|
|
16
16
|
include ::Semian::AdapterError
|
17
17
|
end
|
18
18
|
|
19
|
+
class ConnectionError < Redis::BaseConnectionError
|
20
|
+
# A Connection Reset is a fast failure and we don't want to track these errors in
|
21
|
+
# semian
|
22
|
+
def marks_semian_circuits?
|
23
|
+
message != "Connection lost (ECONNRESET)"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
19
27
|
ResourceBusyError = Class.new(SemianError)
|
20
28
|
CircuitOpenError = Class.new(SemianError)
|
21
29
|
ResolveError = Class.new(SemianError)
|
data/lib/semian/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Francis
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake-compiler
|