metacosm 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metacosm/remote_simulation.rb +2 -2
- data/lib/metacosm/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: 7d2d9b9ddf05636aeb4e6015581edb62f7dbfe30
|
4
|
+
data.tar.gz: 555264af3ea42c524791518da6535a4ced2306ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78d4ae8b726eccaf095a17bde386fefc897e9841c2b79734bb62a89b74f5528536a98cb0abae3ab3497a42b00a76ada58c5c0be81de69d1f5b3cd24dbf49c278
|
7
|
+
data.tar.gz: 52f6d7336f8f243ba5b733e6beb917d456e740080576bd8ea9cca72ae5bcdf945da2f2afdc1fee3a35d2fdb01ec495733b34a4ede81ad0a12eb2f176d97a34e6
|
@@ -14,7 +14,7 @@ module Metacosm
|
|
14
14
|
command_dto = command.attrs.merge(handler_module: command.handler_module_name, handler_class_name: command.handler_class_name)
|
15
15
|
|
16
16
|
Thread.new do
|
17
|
-
|
17
|
+
REDIS_PUB.with do |redis|
|
18
18
|
puts "---> Sending command over redis conn: #{redis.inspect}"
|
19
19
|
redis.publish(@command_queue_name, Marshal.dump(command_dto))
|
20
20
|
end
|
@@ -30,7 +30,7 @@ module Metacosm
|
|
30
30
|
def setup_connection
|
31
31
|
@remote_listener_thread = Thread.new do
|
32
32
|
begin
|
33
|
-
|
33
|
+
REDIS_SUB.with do |redis|
|
34
34
|
redis.subscribe(@event_stream_name) do |on|
|
35
35
|
on.subscribe do |channel, subscriptions|
|
36
36
|
puts "Subscribed to remote simulation event stream ##{channel} (#{subscriptions} subscriptions)"
|
data/lib/metacosm/version.rb
CHANGED