Set durable=False on TopicPublisher, so that it matches the flag on
TopicConsumer. This ensures that either redeclaration of the control_exchange will use the same flag, and avoid AMQPChannelException.
This commit is contained in:
@@ -151,6 +151,7 @@ class TopicPublisher(Publisher):
|
||||
def __init__(self, connection=None, topic="broadcast"):
|
||||
self.routing_key = topic
|
||||
self.exchange = FLAGS.control_exchange
|
||||
self.durable = False
|
||||
super(TopicPublisher, self).__init__(connection=connection)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user