RabbitMQ_into_Chinese icon indicating copy to clipboard operation
RabbitMQ_into_Chinese copied to clipboard

错误提示

Open Panlq opened this issue 6 years ago • 1 comments

在python 版中,发布订阅部分receive_logs.py,其中以下代码错误

result = channel.queue_declare(exclusive=True)

需修改为:

result = channel.queue_declare('', exclusive=True) 原文

Panlq avatar Apr 04 '19 06:04 Panlq

您用的可能是pika1.0.0版本。 新的1.0.0版本对queue_declare方法进行了修改,方法本身不再给其中的queue参数提供默认的空值。

这篇文档使用的是0.9.6版本的pika(文档内有说明),如果你用0.9.6版本,不会报错。 不过没关系,基于pika 1.0.0版本的教程正在路上,敬请期待。

mr-ping avatar Apr 10 '19 07:04 mr-ping