basicjrpc 0.1.61 → 0.1.62

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: 6d101119084938cc15c01a6c2c237ffd8d4fa6e8
4
- data.tar.gz: 001d101b16bc5fc649ce2d7fb78ab60bb694c22c
3
+ metadata.gz: 6a2c026f7b8f0043bcc1b38d211fc13fdff7b45a
4
+ data.tar.gz: e3d406307b927ae8b1444acf0f0014335b6540e7
5
5
  SHA512:
6
- metadata.gz: 07779746d67e73c94bb8d547d6246cc07b31b714a814ff22ba7c5815f6b0f25ba424fd8ea120efab9f42bdb7f40b891745356028c5a8782eab69047e6f6784db
7
- data.tar.gz: f11a32356795345118e9c8e41ac45ee3bfe1237dfd030e35534cc3a618078ea85e9f302ff50b5eecff8f2787fb72f83024a2ac3d7abe08ada89d06f323ea4d90
6
+ metadata.gz: 66706840ac79d86211e4b988071b2dbb64e8eaaba2fb063ac09024b179939e4bbed6c42ed49fffe525d8af8aef9b00193a61d86703b5dd2d60dc7146adac0922
7
+ data.tar.gz: 1292313cff74bd5ddb3b92d6d60c99f0c362bfe7e635881c309e92e3ee17c3681b66b03714913ae987d89a132c7dff7bc641c4615b032820f0230ee0ca499f37
@@ -5,16 +5,18 @@ module BasicJRPC
5
5
  @injected_class = injected_class
6
6
  @queue = queue
7
7
  #@nsq_consumer = Nsq::Consumer.new(nsqlookupd: 'dockerlb:4161', topic: @queue, channel: 'server')
8
- @redis = Redis.new(host: host)
8
+ @host = host
9
9
  end
10
10
 
11
11
  def listen
12
12
  puts "Listening..."
13
+ @redis = Redis.new(host: host)
14
+
13
15
  while true
14
16
  begin
15
17
  redis_response = @redis.brpop(@queue)
16
18
  rescue
17
- @redis = Redis.new(host: host)
19
+ @redis = Redis.new(host: @host)
18
20
  puts "REDIS FAILED! RETRYING"
19
21
  retry
20
22
  end
@@ -1,3 +1,3 @@
1
1
  module BasicJRPC
2
- VERSION = "0.1.61"
2
+ VERSION = "0.1.62"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basicjrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Simpson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-18 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler