race_block 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/race_block/version.rb +1 -1
- data/lib/race_block.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fabe01c4bff14ed3b474f4ebdefed580c6e99882ff1109f6039cb3455de624a9
|
4
|
+
data.tar.gz: bb1476d977667ab35fba7614b3ba4f5fce3d7d7c3cfd4ceeebf15d4301a09a86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f05edc168a9e77c0200b898592f2bc1d1c44830deb23de29bd0c7d386d95f4426a7851590351c12b0e8b00a449f16bba1bd2313e65f249a72b8ce1e41a9fde8
|
7
|
+
data.tar.gz: 62e7a5934630e63e267f01116ef649072450e2d3938e80215b17298b3569c456bd26f2508a5f0e19925b05c28af7d569b96e8ce3541ec580811debaad2d9fb5c
|
data/lib/race_block/version.rb
CHANGED
data/lib/race_block.rb
CHANGED
@@ -63,8 +63,11 @@ module RaceBlock
|
|
63
63
|
RaceBlock.client.expire(@key, 10) if RaceBlock.client.ttl(@key) == -1
|
64
64
|
|
65
65
|
# Token already exists
|
66
|
-
|
67
|
-
|
66
|
+
# todo: Revoke version 0.2.1 because it always return nil no matter what (never committed but released because I'm not a smart man)
|
67
|
+
if RaceBlock.client.get(@key)
|
68
|
+
logger.debug("Token already exists")
|
69
|
+
return
|
70
|
+
end
|
68
71
|
|
69
72
|
return unless set_token_and_wait(@key, **args)
|
70
73
|
|