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.
master
Praveen raj Mani 6 years ago committed by Harshavardhana
parent 3cdf601cf7
commit 7ac0fccb6e
  1. 2
      docs/bucket/notifications/README.md
  2. 2
      docs/zh_CN/bucket/notifications/README.md

@ -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…
Cancel
Save