rabid_mq 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rabid_mq/publisher.rb +1 -1
- data/lib/rabid_mq/version.rb +1 -1
- data/lib/rabid_mq.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: 97a994357baf82e1c1b8647810760c6711c3d000
|
4
|
+
data.tar.gz: 5ce6886aa4eb78f1d66a09dc610207bdd26eae75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a678059c9597b8366dc777598a0811ec5c5edf9883a1ee6b739ce5607f3152726885e8ca7000f06a76aa3de9677c1acdced648cdc6f8f91a15df2147e89e7bc
|
7
|
+
data.tar.gz: 11f439a4eaa597b6e7f2633192609a92efe6d61b1a2b0e7cb839c63c2c0e5eb146be0c9314c035f7c96137a08e3949cd95472ec110744589603fb08eda256155
|
data/lib/rabid_mq/publisher.rb
CHANGED
@@ -24,7 +24,7 @@ module RabidMQ
|
|
24
24
|
|
25
25
|
class << self
|
26
26
|
def amqp_broadcast(topic, payload, routing_key: self.default_amqp_routing_key)
|
27
|
-
exchange = topic_exchange(topic)
|
27
|
+
exchange = topic_exchange(topic, durable: true)
|
28
28
|
exchange.publish(payload, routing_key: routing_key)
|
29
29
|
rescue => e
|
30
30
|
if defined? ::Rails
|
data/lib/rabid_mq/version.rb
CHANGED
data/lib/rabid_mq.rb
CHANGED
@@ -15,13 +15,13 @@ module RabidMQ
|
|
15
15
|
class << self
|
16
16
|
|
17
17
|
# Provide a topic exchange on demand connected to the existing channel
|
18
|
-
def topic_exchange(topic, **options)
|
19
|
-
channel.topic(name_with_env(topic), **options)
|
18
|
+
def topic_exchange(topic, durable: true, **options)
|
19
|
+
channel.topic(name_with_env(topic), durable: durable, **options)
|
20
20
|
end
|
21
21
|
|
22
22
|
# Provide fanout exchange
|
23
|
-
def fanout_exchange(topic, **options)
|
24
|
-
channel.fanout(name_with_env(topic), **options)
|
23
|
+
def fanout_exchange(topic, durable: true, **options)
|
24
|
+
channel.fanout(name_with_env(topic), durable: durable, **options)
|
25
25
|
end
|
26
26
|
|
27
27
|
# Get a channel with the Bunny::Session
|