robust-redis-lock 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis-lock.rb +3 -1
- data/lib/robust-redis-lock/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: 4532c60dbdd9dbda0494d291ec47276dad9c8463
|
4
|
+
data.tar.gz: ff8bad187e8116243a3de62c4d8aedde7fc8b757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ad8f13716f009d9dfe3a50bfdb9e26f24bca385392c5c2b70a7013abf5137c4832f284c6ec42c138b94928039b5b6c702db3f7950f4b867e2e8f2b0b319dad1
|
7
|
+
data.tar.gz: 45561ebe6be8bafc0bcbed43b1da63b0f9f118b5da02d72d8abb5d01bda13258938f7eaf7ae09ca410017d6879cd3a188a76fea50ff9b15c4108cc3ae91ff3f5
|
data/lib/redis-lock.rb
CHANGED
@@ -163,7 +163,9 @@ class Redis::Lock
|
|
163
163
|
return false
|
164
164
|
end
|
165
165
|
LUA
|
166
|
-
!!@@unlock_script.eval(@redis, :keys => [namespaced_key, @key_group_key], :argv => [@key, @token])
|
166
|
+
!!@@unlock_script.eval(@redis, :keys => [namespaced_key, @key_group_key], :argv => [@key, @token]).tap do
|
167
|
+
@token = nil
|
168
|
+
end
|
167
169
|
end
|
168
170
|
|
169
171
|
def extend
|