data_collector 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/data_collector/ext/base.rb +6 -1
- data/lib/data_collector/input/rpc.rb +2 -2
- data/lib/data_collector/output/rpc.rb +4 -0
- data/lib/data_collector/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: 4a1ff20af153214903e447f712e1103d1ad3f31c0d78116f0d53ada7e0ca4870
|
|
4
|
+
data.tar.gz: 8daf87004c13c9842f2c6c8bd32de92064e17305ec05cdcff6cc2d9aff3b83a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 614d463b0325b3d0a258e29eb1eb201e95123b77d0dfce47f798417f21a55a5c35b4d1109e6be563278dcedb0add4d275ee2408359a1727d5668d141497ba780
|
|
7
|
+
data.tar.gz: cc6429da9bb97ca08e01b9180d7eaedaa2800cf9b663c8486658a15371da45bb4f3650b833d885020af2034d59ccc249682d6590cbc4b333441af7e405092790
|
|
@@ -12,11 +12,16 @@ module BunnyBurrow
|
|
|
12
12
|
@connection.start
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
@connection.start unless @connection.connected? || @connection.closed?
|
|
16
|
+
#@connection.start if @connection.closed?
|
|
17
|
+
|
|
18
|
+
#pp @connection.status
|
|
19
|
+
|
|
15
20
|
@connection
|
|
16
21
|
end
|
|
17
22
|
|
|
18
23
|
def channel
|
|
19
|
-
@channel
|
|
24
|
+
@channel = connection.create_channel unless @channel && @channel.open?
|
|
20
25
|
|
|
21
26
|
@channel
|
|
22
27
|
end
|
|
@@ -18,6 +18,8 @@ module DataCollector
|
|
|
18
18
|
@listener.shutdown
|
|
19
19
|
@running = false
|
|
20
20
|
end
|
|
21
|
+
rescue Bunny::ConnectionAlreadyClosed => e
|
|
22
|
+
DataCollector::Core.log(e.message)
|
|
21
23
|
rescue StandardError => e
|
|
22
24
|
DataCollector::Core.error(e.message)
|
|
23
25
|
end
|
|
@@ -28,8 +30,6 @@ module DataCollector
|
|
|
28
30
|
DataCollector::Core.error(e.message)
|
|
29
31
|
end
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
33
|
def run(should_block = false, &block)
|
|
34
34
|
@listener.subscribe(@bunny_queue) do |payload|
|
|
35
35
|
payload = JSON.parse(payload)
|