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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3e274e1943008aaed80c4fe3108524e957503d1
4
- data.tar.gz: 154f4715e5f8b565e753e3b7a6cee28ff2276f26
3
+ metadata.gz: 9a3b68af5fa2b3851d89d2bc21e70f31bc347f66
4
+ data.tar.gz: abf13231be9912d9670501efa6aea0a643768fdd
5
5
  SHA512:
6
- metadata.gz: d63309ac6b9d1b493e5f09d7e267343e0122efe414d1bc1dd96d7e098fa79f916beb6650c3233d0507fc1f37de2469b52d0c81099431b181949822d04865c747
7
- data.tar.gz: 47b0afae6ea956ad89bb377d8bbc621b0fb68499310cfbad28894718b97bc502b9d40ee52bb6194eda6b434434ee02b4039d804e44124c17f886336180d84173
6
+ metadata.gz: 48f93ad1c08845034ce367a69ac017e56edf6f1d3e87800bad19d447dcd1a385bef1ccfa12500a2743023e7f3d92449964bbd1f25b8dcd8169e2ea35c8678421
7
+ data.tar.gz: 860f858c07cc5dd1f17f9d580fa3c0192d01b4f3a6d8b6af84d275cf2f37dcfef62a00608415a78ee1de51a41e80cbbd39b2b07dccbaf810ded152f0f0a7155b
@@ -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
- # don't let ZK hang the thread, timeout and check connection status
20
- zk = ZK::Client.new zk_url, timeout: timeout_duration, chroot: '/cellect'
21
- raise ConnectionError.new("Can't connect to ZK server.") unless zk.connected?
22
- self.zk = zk
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
@@ -1,3 +1,3 @@
1
1
  module Cellect
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cellect-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Parrish