Merge pull request #206 from stof/patch-1
Publish tasks as persistent messages in the php-amqp tutorial
This commit is contained in:
commit
4893925fcf
@ -33,7 +33,7 @@ if(empty($message))
|
||||
$message = "Hello World!";
|
||||
|
||||
$exchange = new AMQPExchange($channel);
|
||||
$exchange->publish($message, $routing_key);
|
||||
$exchange->publish($message, $routing_key, AMQP_NOPARAM, array('delivery_mode' => 2));
|
||||
|
||||
echo " [x] Sent {$message}", PHP_EOL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user