bmc-daemon-lib 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bmc-daemon-lib.gemspec +1 -1
- data/lib/bmc-daemon-lib/mq_consumer.rb +6 -7
- 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: 4e9f80231e52c86d65213c10edb2393aa834b93a
|
4
|
+
data.tar.gz: d1a7813b31d27d6ccfa99ea801dfa6ea099a519a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f52c5afe37bfa15cd3b571298c410a32dad58098bba5fde1869b9e8a8c46ef0b678f888d53c70baf855a3d66175715cdb64f95c4173e791e12248a512a9f728
|
7
|
+
data.tar.gz: 2f376eca2e74f677d08fae6c874bfd5ad886c9b42ae0548062622a7c2f208187b484852e450e9c784d6f9b27bf340ff10b2faefc4fe61ebcd062944f3f18b961
|
data/bmc-daemon-lib.gemspec
CHANGED
@@ -37,18 +37,17 @@ module BmcDaemonLib
|
|
37
37
|
raise MqConsumerException, error
|
38
38
|
end
|
39
39
|
|
40
|
-
#
|
40
|
+
# Bind on topic exchange, if exists
|
41
41
|
exchange = @channel.topic(topic, durable: true)
|
42
42
|
|
43
43
|
# puts "listen_to(#{topic},#{rkey})"
|
44
|
-
@queue.bind
|
44
|
+
@queue.bind topic, routing_key: rkey
|
45
45
|
|
46
46
|
# Handle errors
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
# # raise MqConsumerTopicNotFound, e.message
|
47
|
+
rescue Bunny::NotFound => e
|
48
|
+
log_debug "missing exchange [#{topic}]"
|
49
|
+
#@channel.topic topic, durable: false, auto_delete: true
|
50
|
+
raise MqConsumerTopicNotFound, e.message
|
52
51
|
|
53
52
|
rescue StandardError => e
|
54
53
|
log_error "UNEXPECTED: #{e.inspect}"
|