Skip to content

Commit

Permalink
Create ClientConfig from incoming options
Browse files Browse the repository at this point in the history
  • Loading branch information
grachevko committed Jun 9, 2021
1 parent 70c4667 commit 28df682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.1",
"nsq/nsq": "^0.6.2",
"symfony/framework-bundle": "^5.0",
"symfony/messenger": "^5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Messenger/NsqTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function createTransport(string $dsn, array $options, SerializerInterface
$topic = $nsqOptions['topic'] ?? 'symfony-messenger';
$channel = $nsqOptions['channel'] ?? 'default';

$clientConfig = new ClientConfig();
$clientConfig = ClientConfig::fromArray($nsqOptions);

return new NsqTransport(
$address,
Expand Down

0 comments on commit 28df682

Please sign in to comment.