Skip to content

Commit 6ff2a1d

Browse files
authored
Publish tasks as persistent messages in the php-amqp tutorial
1 parent 2ca7c34 commit 6ff2a1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-amqp/new_task.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
$message = "Hello World!";
3434

3535
$exchange = new AMQPExchange($channel);
36-
$exchange->publish($message, $routing_key);
36+
$exchange->publish($message, $routing_key, AMQP_NOPARAM, array('delivery_mode' => 2));
3737

3838
echo " [x] Sent {$message}", PHP_EOL;
3939

0 commit comments

Comments
 (0)