Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3781083
D2361.id5945.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
829 B
Referenced Files
None
Subscribers
None
D2361.id5945.diff
View Options
diff --git a/notifications b/notifications
--- a/notifications
+++ b/notifications
@@ -62,7 +62,7 @@
"""Ensure exchange exists and declare a temporary queue."""
channel.exchange_declare(
exchange=exchange, exchange_type='topic', durable=True)
- result = channel.queue_declare(exclusive=True)
+ result = channel.queue_declare("", exclusive=True)
return result.method.queue
@@ -190,7 +190,7 @@
"""Consume notifications from a queue
and call our callback method when a message is received.
"""
- channel.basic_consume(on_broker_message, queue=queue)
+ channel.basic_consume(queue, on_broker_message)
channel.start_consuming()
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1 @@
+pika<2.0.0,>=1.1.0
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 18:38 (20 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264765
Default Alt Text
D2361.id5945.diff (829 B)
Attached To
Mode
D2361: Upgrade to pika 1.1.0
Attached
Detach File
Event Timeline
Log In to Comment