Skip to content

Commit

Permalink
Merge pull request #585 from alexhelkar/patch-1
Browse files Browse the repository at this point in the history
Fix expiration configuration parameter description
  • Loading branch information
mihaileu authored Mar 16, 2021
2 parents 187d448 + bf990fb commit 8e29336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,12 @@ rpc_clients:
expect_serialized_response: false
```

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.
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.

```php
public function indexAction($name)
{
$expiration = 5; // seconds
$expiration = 5000; // milliseconds
$client = $this->get('old_sound_rabbit_mq.integer_store_rpc');
$client->addRequest($body, $server, $requestId, $routingKey, $expiration);
try {
Expand Down

0 comments on commit 8e29336

Please sign in to comment.