Print later

This commit is contained in:
Michael Klishin 2015-12-21 06:07:42 +03:00
parent 3b471a45d7
commit 55374bd433

View File

@ -8,8 +8,6 @@ channel = connection.channel()
channel.queue_declare(queue='hello')
print(' [*] Waiting for messages. To exit press CTRL+C')
def callback(ch, method, properties, body):
print(" [x] Received %r" % body)
@ -17,4 +15,5 @@ channel.basic_consume(callback,
queue='hello',
no_ack=True)
print(' [*] Waiting for messages. To exit press CTRL+C')
channel.start_consuming()