ksconnect 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ksconnect.rb +4 -4
- 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: 1829fca81d5c50520f46482c6aac8a330cdaa973
|
4
|
+
data.tar.gz: 823a43e18f55e9c5ec44714c1df4cfe78f3bab5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f63878c2085648cf7c8f6737f3d302ebf900d1dec5b7dc1228579bd39c1190081a509cea625a7c373533dd38f8375bfac8a520bf7434544f2acd88fe4fc48f92
|
7
|
+
data.tar.gz: ae3e9766776380e593cb3c809dcb8677a9d596d79b26d3f2b6bc171d33281d8292e64462170df8e5ff3cad74a5476e3b6b8f4c13c47619af8a1b0d638dbe9969
|
data/lib/ksconnect.rb
CHANGED
@@ -35,12 +35,12 @@ class KSConnect
|
|
35
35
|
Thread.start do
|
36
36
|
begin
|
37
37
|
Redis.new.subscribe(name) do |on|
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
logger.info "Subscribing to redis channel: #{name}"
|
39
|
+
on.message do |_channel, message|
|
40
|
+
thread_pool.process do
|
41
41
|
yield message
|
42
|
+
$stdout.flush
|
42
43
|
end
|
43
|
-
$stdout.flush
|
44
44
|
end
|
45
45
|
end
|
46
46
|
rescue => error
|