mirror of https://github.com/celery/kombu.git
Fix undefined variable in Quick overview example
NameError: name 'channel' is not defined
This commit is contained in:
parent
bb308d16aa
commit
49f3be26da
|
@ -130,7 +130,7 @@ Quick overview
|
|||
# Declare the video queue so that the messages can be delivered.
|
||||
# It is a best practice in Kombu to have both publishers and
|
||||
# consumers declare the queue.
|
||||
video_queue(channel).declare()
|
||||
video_queue(conn.channel()).declare()
|
||||
|
||||
# produce
|
||||
with conn.Producer(exchange=media_exchange,
|
||||
|
|
Loading…
Reference in New Issue