ruby_nest_nats 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_nest_nats.rb +1 -1
- data/lib/ruby_nest_nats/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 655b85cbd8f941a46595d30adde13826cf69e8978a829653596aaa1ebd4d6437
|
4
|
+
data.tar.gz: 1d72decb7def437e62a6302d1885ef18e66940285ccd10abc3bb34b34e44bbd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17de52f910afb1eb74da267e29f80cbcfdfb0e2f929c4cc8912b4d7dcb8c445c15a063eb30c11a74b2504ec51196a1af72f141b05a9f96ada6103e8cb519c617
|
7
|
+
data.tar.gz: ffb654a55f20b835fb7e516af5425c192627146a3be9e2fb61cb07f4de79357f7ee6f7eeb2a1f4a36642fb719270ec30005eef39fe2961b65813157c26d49b4d
|
data/lib/ruby_nest_nats.rb
CHANGED
@@ -44,7 +44,7 @@ module RubyNestNats
|
|
44
44
|
fiber = Fiber.new do
|
45
45
|
NATS.start do
|
46
46
|
replies.each do |replier|
|
47
|
-
NATS.subscribe(replier[:subject], queue:
|
47
|
+
NATS.subscribe(replier[:subject], queue: replier[:queue]) do |message, reply, _subject|
|
48
48
|
response = replier[:handler].call(JSON.parse(message)["data"])
|
49
49
|
NATS.publish(reply, response.to_json, queue: reply[:queue])
|
50
50
|
end
|