Skip to content

Commit 778ef6c

Browse files
committed
Using self descriptional constant
1 parent b3e8349 commit 778ef6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/new_task.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
$data = implode(' ', array_slice($argv, 1));
1414
if(empty($data)) $data = "Hello World!";
1515
$msg = new AMQPMessage($data,
16-
array('delivery_mode' => 2) # make message persistent
16+
array('delivery_mode' => AMQPMessage::DELIVERY_MODE_PERSISTENT)
1717
);
1818

1919
$channel->basic_publish($msg, '', 'task_queue');

0 commit comments

Comments
 (0)