Skip to content

Commit 8e29336

Browse files
authored
Merge pull request #585 from alexhelkar/patch-1
Fix expiration configuration parameter description
2 parents 187d448 + bf990fb commit 8e29336

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
@@ -631,12 +631,12 @@ rpc_clients:
631631
expect_serialized_response: false
632632
```
633633

634-
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.
634+
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.
635635

636636
```php
637637
public function indexAction($name)
638638
{
639-
$expiration = 5; // seconds
639+
$expiration = 5000; // milliseconds
640640
$client = $this->get('old_sound_rabbit_mq.integer_store_rpc');
641641
$client->addRequest($body, $server, $requestId, $routingKey, $expiration);
642642
try {

0 commit comments

Comments
 (0)