Skip to content

Commit bf990fb

Browse files
authored
Fix expiration configuration parameter description
According to the RabbitMQ documentation expiration is set as milliseconds. ``` The value of the expiration field describes the TTL period in milliseconds. The same constraints as for x-message-ttl apply. Since the expiration field must be a string, the broker will (only) accept the string representation of the number. ``` https://www.rabbitmq.com/ttl.html#per-message-ttl-in-publishers
1 parent cf67ada commit bf990fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,12 @@ rpc_clients:
606606
expect_serialized_response: false
607607
```
608608

609-
You can also set a expiration for request in seconds, after which message will no longer be handled by server and client request will simply time out. Setting expiration for messages works only for RabbitMQ 3.x and above. Visit http://www.rabbitmq.com/ttl.html#per-message-ttl for more information.
609+
You can also set a expiration for request in milliseconds, after which message will no longer be handled by server and client request will simply time out. Setting expiration for messages works only for RabbitMQ 3.x and above. Visit http://www.rabbitmq.com/ttl.html#per-message-ttl for more information.
610610

611611
```php
612612
public function indexAction($name)
613613
{
614-
$expiration = 5; // seconds
614+
$expiration = 5000; // milliseconds
615615
$client = $this->get('old_sound_rabbit_mq.integer_store_rpc');
616616
$client->addRequest($body, $server, $requestId, $routingKey, $expiration);
617617
try {

0 commit comments

Comments
 (0)