cellect-client 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cellect/node_set.rb +5 -4
- data/lib/cellect/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: 9a3b68af5fa2b3851d89d2bc21e70f31bc347f66
|
4
|
+
data.tar.gz: abf13231be9912d9670501efa6aea0a643768fdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48f93ad1c08845034ce367a69ac017e56edf6f1d3e87800bad19d447dcd1a385bef1ccfa12500a2743023e7f3d92449964bbd1f25b8dcd8169e2ea35c8678421
|
7
|
+
data.tar.gz: 860f858c07cc5dd1f17f9d580fa3c0192d01b4f3a6d8b6af84d275cf2f37dcfef62a00608415a78ee1de51a41e80cbbd39b2b07dccbaf810ded152f0f0a7155b
|
data/lib/cellect/node_set.rb
CHANGED
@@ -16,10 +16,11 @@ module Cellect
|
|
16
16
|
|
17
17
|
# Connect to ZooKeeper, setup this node, and change state
|
18
18
|
def initialize_zk
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
begin
|
20
|
+
Timeout::timeout(timeout_duration) do
|
21
|
+
self.zk = ZK.new zk_url, chroot: '/cellect'
|
22
|
+
end
|
23
|
+
end
|
23
24
|
setup
|
24
25
|
self.state = :ready
|
25
26
|
end
|
data/lib/cellect/version.rb
CHANGED