Print later
This commit is contained in:
parent
3b471a45d7
commit
55374bd433
@ -8,8 +8,6 @@ channel = connection.channel()
|
|||||||
|
|
||||||
channel.queue_declare(queue='hello')
|
channel.queue_declare(queue='hello')
|
||||||
|
|
||||||
print(' [*] Waiting for messages. To exit press CTRL+C')
|
|
||||||
|
|
||||||
def callback(ch, method, properties, body):
|
def callback(ch, method, properties, body):
|
||||||
print(" [x] Received %r" % body)
|
print(" [x] Received %r" % body)
|
||||||
|
|
||||||
@ -17,4 +15,5 @@ channel.basic_consume(callback,
|
|||||||
queue='hello',
|
queue='hello',
|
||||||
no_ack=True)
|
no_ack=True)
|
||||||
|
|
||||||
|
print(' [*] Waiting for messages. To exit press CTRL+C')
|
||||||
channel.start_consuming()
|
channel.start_consuming()
|
||||||
|
Loading…
Reference in New Issue
Block a user