1. adroll
  2. quebert

Commits

Valentino Volonghi aka dialtone  committed fce1100

make durable another argument, why it wasn't before is weird to me

  • Participants
  • Parent commits a7ce40a
  • Branches default

Comments (0)

Files changed (1)

File quebert/client.py

View file
     def __init__(self, host, username, password, exchange):
         self.conn = amqp.Connection(host, userid=username, password=password)
         self.ch = self.conn.channel()
-        self.ch.exchange_declare(exchange, type='topic', auto_delete=False)
+        self.ch.exchange_declare(exchange, type='topic', auto_delete=False, durable=True)
         self.exchange = exchange
 
     def sendto(self, body, key):