Skip to content

Commit

Permalink
Fixing services registration
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jan 9, 2022
1 parent eca23fd commit 877090a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion redisdb_exchange_plugin/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def create_container(
di[Publisher] = Publisher(redis_client=di[RedisClient])
di["fb-redisdb-exchange-plugin_publisher"] = di[Publisher]

di[RedisExchange] = RedisExchange(redis_client=di[RedisClient], logger=di[Logger])
di[RedisExchange] = RedisExchange(redis_client=di[RedisClient], logger=di[Logger]) # type: ignore[call-arg]
di["fb-redisdb-exchange-plugin_exchange"] = di[RedisExchange]

di[ExchangePublisher].register_publisher(di[Publisher])
4 changes: 2 additions & 2 deletions src/Subscribers/AsyncClientSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AsyncClientSubscriber implements EventDispatcher\EventSubscriberInterface
{

/** @var ExchangePluginConsumer\IConsumer */
private ?ExchangePluginConsumer\IConsumer $consumer;
private ExchangePluginConsumer\IConsumer $consumer;

/** @var ModulesMetadataLoaders\ISchemaLoader */
private ModulesMetadataLoaders\ISchemaLoader $schemaLoader;
Expand All @@ -58,7 +58,7 @@ public function __construct(
ModulesMetadataLoaders\ISchemaLoader $schemaLoader,
ModulesMetadataSchemas\IValidator $validator,
PsrEventDispatcher\EventDispatcherInterface $dispatcher,
?ExchangePluginConsumer\IConsumer $consumer,
ExchangePluginConsumer\IConsumer $consumer,
?Log\LoggerInterface $logger = null
) {
$this->schemaLoader = $schemaLoader;
Expand Down

0 comments on commit 877090a

Please sign in to comment.