Fix undefined variable in Quick overview example

NameError: name 'channel' is not defined
This commit is contained in:
Pierre Riteau 2012-01-20 14:22:47 +01:00
parent bb308d16aa
commit 49f3be26da
1 changed files with 1 additions and 1 deletions

View File

@ -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,