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()