basicjrpc 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/basicjrpc/client.rb +1 -1
- data/lib/basicjrpc/server.rb +1 -1
- data/lib/basicjrpc/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: dc4deab7054ee8cf68379a75cebfd8664f15df55
|
4
|
+
data.tar.gz: c034a0268fceec519f0628c0e0bd79b96fd7661a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c77285fc786203f8ebd7ae7fb43f2c98fae6629776cc7cb172c8d3194cdfdfe22454e51412ffb15af524ae494606c744ed43a6580b745535fd9606c9c8c6407
|
7
|
+
data.tar.gz: 4c8d48af144440d444a49eebcb0e79dc3a2206dfadb381fc2765ace56947a62fb59e355a97c39e00a376fba9c9b95dff6bb3dca3a1ceef6977e453b794bef71f
|
data/lib/basicjrpc/client.rb
CHANGED
@@ -19,7 +19,7 @@ module BasicJRPC
|
|
19
19
|
|
20
20
|
@nsq_producer.write(Oj.dump(payload))
|
21
21
|
|
22
|
-
return Oj.load(Nsq::Consumer.new(nsqlookupd: 'dockerlb:4161',topic: payload[:message_id], channel: 'client').pop)
|
22
|
+
return Oj.load(Nsq::Consumer.new(nsqlookupd: 'dockerlb:4161',topic: payload[:message_id], channel: 'client').pop.body)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
data/lib/basicjrpc/server.rb
CHANGED
@@ -10,7 +10,7 @@ module BasicJRPC
|
|
10
10
|
def listen
|
11
11
|
puts "Listening..."
|
12
12
|
while true
|
13
|
-
payload = Oj.load(@nsq_consumer.pop)
|
13
|
+
payload = Oj.load(@nsq_consumer.pop.body)
|
14
14
|
puts "Processing message #{payload.method_name} #{payload.method_arguments}"
|
15
15
|
|
16
16
|
# Should always return a data object
|
data/lib/basicjrpc/version.rb
CHANGED