cellect-server 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: 768412bc0e88ed9ae800d0df89cb7d0f68b032d3
4
- data.tar.gz: c330d41613b33a8c4ed8052705ce0067aea06318
3
+ metadata.gz: 1efbe81e4f9f98a1badc9aea8141532d0ecfda51
4
+ data.tar.gz: 52905f8f3f68771afeb1067dec99ad197644735f
5
5
  SHA512:
6
- metadata.gz: f8522c842f93fd874af6b666c651c81be85c73ef3a4cb41bf5b6f275b34ea365adf76b3f7747da9259d05ab29483fffadb51b29303cfaf7aa1131a6234a483ae
7
- data.tar.gz: 914fe30b9b6ee1c59d19c0054aac2f71c387cee25867f302e21804c5992377a4ef92a543fdb7fb0ede9523b615c44d7703a40bb907cc6a930f87b18ecd3d8edc
6
+ metadata.gz: 177f11e20220a38821d3f9385e064687f605f5a3dc86129529083f573c9d23c78c58d2ba07601250cf8b198ac464f1da36d4fb6138b2895dc68b00ed0b8a87bf
7
+ data.tar.gz: 469c823c50b7166c72d85c97dfa542400ec0c09e32720e1c232a0034011c3f5bc582d5b965166466da978276adaa1308e8ce16147e3a6d840405713366adb866
@@ -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-server
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