This commit is contained in:
parent
81e96b4162
commit
cc757e1455
@ -15,4 +15,5 @@ __version__text__ = "1"
|
|||||||
credentials = pika.PlainCredentials(RABBITMQ_USERNAME, RABBITMQ_PASSWORD)
|
credentials = pika.PlainCredentials(RABBITMQ_USERNAME, RABBITMQ_PASSWORD)
|
||||||
rabbitmq = pika.BlockingConnection(pika.ConnectionParameters(host=RABBITMQ_HOST, credentials=credentials))
|
rabbitmq = pika.BlockingConnection(pika.ConnectionParameters(host=RABBITMQ_HOST, credentials=credentials))
|
||||||
rabbitmq_channel = rabbitmq.channel()
|
rabbitmq_channel = rabbitmq.channel()
|
||||||
|
rabbitmq_channel.exchange_declare(exchange=RABBITMQ_EXCHANGE, exchange_type='fanout')
|
||||||
rabbitmq_channel.queue_declare(RABBITMQ_QUEUE)
|
rabbitmq_channel.queue_declare(RABBITMQ_QUEUE)
|
Loading…
Reference in New Issue
Block a user