updated pika API changes in rabbitMQ notification doc (#5980)

The pika python package used for listening on rabbitMQ events
has breaking change. 'type' param changed to 'exchange_type'
in newer releases.
This commit is contained in:
Praveen raj Mani 2018-05-26 05:52:00 +05:30 committed by Harshavardhana
parent 3cdf601cf7
commit 7ac0fccb6e
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
channel = connection.channel()
channel.exchange_declare(exchange='bucketevents',
type='fanout')
exchange_type='fanout')
result = channel.queue_declare(exclusive=False)
queue_name = result.method.queue

View File

@ -95,7 +95,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
channel = connection.channel()
channel.exchange_declare(exchange='bucketevents',
type='fanout')
exchange_type='fanout')
result = channel.queue_declare(exclusive=False)
queue_name = result.method.queue