From 55374bd433d8a28f3bb9ba8df63ef99c4260d29a Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Mon, 21 Dec 2015 06:07:42 +0300 Subject: [PATCH] Print later --- python/receive.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/receive.py b/python/receive.py index 5cdfa3b..f7d1d2d 100755 --- a/python/receive.py +++ b/python/receive.py @@ -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()