basicjrpc 0.1.28 → 0.1.29
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 +2 -2
- 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: 1306c12d987ed5b1de2b95e63749559ae6c53a90
|
4
|
+
data.tar.gz: 855a79c8ab8a89c527c66ccb80d4fed2753dedfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1e6530a3e5c56cbcc227b52e027fc22a9f8c93b2de0ba5dd8f5df425f38ccd8b34ac47f1d90f818e029f331d34ba0fc07feadcd5889eaf4262d9f36d8bec5d
|
7
|
+
data.tar.gz: acdbf18b4fb45ce1d4211babeaa2be9a1bea362431b31129384e1a737f888f0c4ba2e3b0e8c9cb1b86230fc12379de9ca281de2c7e3f9759ea6261d4b6ffaf45
|
data/lib/basicjrpc/client.rb
CHANGED
@@ -14,7 +14,7 @@ module BasicJRPC
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def send_request payload
|
17
|
-
nsq_producer = Nsq::Producer.new(nsqd: 'dockerlb:4150', topic: queue)
|
17
|
+
nsq_producer = Nsq::Producer.new(nsqd: 'dockerlb:4150', topic: @queue)
|
18
18
|
|
19
19
|
payload[:message_id] = SecureRandom.uuid
|
20
20
|
payload[:instance_id] = @instance_id
|
@@ -33,7 +33,7 @@ module BasicJRPC
|
|
33
33
|
def send_request payload
|
34
34
|
payload[:message_id] = SecureRandom.uuid
|
35
35
|
payload[:response] = true
|
36
|
-
nsq_producer = Nsq::Producer.new(nsqd: 'dockerlb:4150', topic: queue)
|
36
|
+
nsq_producer = Nsq::Producer.new(nsqd: 'dockerlb:4150', topic: @queue)
|
37
37
|
nsq_producer.write(Oj.dump(payload))
|
38
38
|
nsq_producer.terminate
|
39
39
|
end
|
data/lib/basicjrpc/version.rb
CHANGED