nats-rpc 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nats/rpc/client.rb +6 -2
- data/lib/nats/rpc/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: 67bf64491db922669d63fb1d600dadf236e34600b5d5836412d3fce8a8f37ac0
|
4
|
+
data.tar.gz: 9e2fe08574804379047d5fff808b652cf793d0df1f11b27a7399c2ab5c8af5e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c761af0486194d2ac948375e5e9ea9a7d890b535e538258479ec7c293b1df78f1d1813d6547cec3d37dcaa4604dc01cffc2db751058e8ea0cba8e3bd01f15dfd
|
7
|
+
data.tar.gz: '095faca1a3e9df4b422700af6e3593d3104d1c80b0144ddf5602cb3f6402cc147b2e048d5c2a3f15b611756aab4e9f728f8362e248f2be964fc671aadc4d3f8c'
|
data/Gemfile.lock
CHANGED
data/lib/nats/rpc/client.rb
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
module NATS
|
2
2
|
module RPC
|
3
3
|
class Client
|
4
|
-
def initialize(
|
4
|
+
def initialize(cluster_opts=nil)
|
5
|
+
cluster_opts = {
|
6
|
+
servers: ["nats://127.0.0.1:4222"]
|
7
|
+
} unless cluster_opts
|
8
|
+
|
5
9
|
@nats = NATS::IO::Client.new
|
6
|
-
@nats.connect
|
10
|
+
@nats.connect cluster_opts
|
7
11
|
end
|
8
12
|
|
9
13
|
def request(subscription, obj, opts)
|
data/lib/nats/rpc/version.rb
CHANGED