ksconnect 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ksconnect/api/plugin/data.rb +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea648d37bdf08e22c193648dc2ef8e06c396069a
|
4
|
+
data.tar.gz: 663bc01a5c9a1e26c6255f2e90556721153a56ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8d1aef99fafb2166cda2b51271237abe3fae887074b8dec65ba9d6fb63951fe8169025b02fcf7ebd51ddb474182ac01d610eeb75334e7deffa2a3da8b669d30
|
7
|
+
data.tar.gz: 9fd0ed41cab42654b170f31d8b4b100d7be9bbb45be598ccd2b38c797fa20e1287329ab71ff090052a1d616e47b7ddb02b1c86971904d452fc25c52bf15d05ef
|
@@ -101,11 +101,9 @@ class KSConnect
|
|
101
101
|
id = redis.hget("#{@plugin_name}:#{@type}", @domain_name)
|
102
102
|
if id
|
103
103
|
@cache_uuid = id
|
104
|
-
elsif !@read_only
|
105
|
-
@cache_uuid = SecureRandom.uuid
|
106
|
-
raise "Race on setting data key failed." unless redis.hsetnx("#{@plugin_name}:#{@type}", @domain_name, @cache_uuid)
|
107
104
|
else
|
108
|
-
|
105
|
+
@cache_uuid = SecureRandom.uuid
|
106
|
+
raise "Race on setting data key failed." unless !@read_only && redis.hsetnx("#{@plugin_name}:#{@type}", @domain_name, @cache_uuid)
|
109
107
|
end
|
110
108
|
rescue Exception => e
|
111
109
|
if (tries -= 1).nonzero?
|