mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
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:
parent
3cdf601cf7
commit
7ac0fccb6e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user