8000 format publish · syk-coder/rabbitmq-tutorials@4f08455 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f08455

Browse files
author
Ann Witbrock
committed
format publish
1 parent d8ab36c commit 4f08455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/new_task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
channel.queue_declare(queue='task_queue', durable=True)
1010

1111
message = ' '.join(sys.argv[1:]) or "Hello World!"
12-
channel.basic_publish(exchange='', routing_key='task_queue',
12+
channel.basic_publish(exchange='',
13+
routing_key='task_queue',
1314
body=message,
1415
properties=pika.BasicProperties(
1516
delivery_mode = 2, # make message persistent

0 commit comments

Comments
 (0)
0