seamusabshere-redlock 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redlock/testing.rb +3 -1
- data/lib/redlock/version.rb +1 -1
- 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: 28e03a101def80d2e4aa80a5147ac3e3017984c8
|
4
|
+
data.tar.gz: 51115877ef151e5717b1b4849d883ca9cc7032cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97cb55a4644e9a0b283775cd426474e805871575adcd49413a8026506cb3a4915c4b8d6cde700d41b240c217a72d5edb479837eeffc2048be20a66cd92195df5
|
7
|
+
data.tar.gz: 92822b4b1068e94f219a234da2473ccbf0c0960578b308e52a44ad28786fcc51f5e06d4195a86eb19224a539d00944327a6d1a147ebbadf774d01c99cdd1a8de
|
data/lib/redlock/testing.rb
CHANGED
@@ -26,9 +26,11 @@ module Redlock
|
|
26
26
|
|
27
27
|
class RedisInstance
|
28
28
|
def load_scripts
|
29
|
-
|
29
|
+
begin
|
30
30
|
@unlock_script_sha = @redis.script(:load, UNLOCK_SCRIPT)
|
31
31
|
@lock_script_sha = @redis.script(:load, LOCK_SCRIPT)
|
32
|
+
rescue Redis::CommandError
|
33
|
+
# ignore
|
32
34
|
end
|
33
35
|
end
|
34
36
|
end
|
data/lib/redlock/version.rb
CHANGED