This commit is contained in:
parent
cc757e1455
commit
85b306e6ad
@ -16,4 +16,3 @@ 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.exchange_declare(exchange=RABBITMQ_EXCHANGE, exchange_type='fanout')
|
||||||
rabbitmq_channel.queue_declare(RABBITMQ_QUEUE)
|
|
Loading…
Reference in New Issue
Block a user