Skip to content

Commit

Permalink
Set maxRdy to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
grachevko committed Jul 8, 2021
1 parent 819f2c9 commit ed2fdeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require": {
"php": "^8.0.1",
"ext-json": "*",
"nsq/nsq": "^0.6.2",
"nsq/nsq": "0.7",
"symfony/framework-bundle": "^5.0",
"symfony/messenger": "^5.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/Messenger/NsqTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function createTransport(string $dsn, array $options, SerializerInterface
}

$nsqOptions = $query + $options;
$nsqOptions['rdyCount'] = 1;

$address = sprintf('tcp://%s:%s', $components['host'], $components['port'] ?? $query['port'] ?? 4150);
$topic = $nsqOptions['topic'] ?? 'symfony-messenger';
Expand Down

0 comments on commit ed2fdeb

Please sign in to comment.