Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Don't create extra KafkaLocationManager (#1489)
Browse files Browse the repository at this point in the history
Seems like an oversight that we were creating two of them per topic repository.
  • Loading branch information
a1exsh authored Jan 17, 2023
1 parent e862d6a commit b9d3658
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public TopicRepository createTopicRepository(final Storage storage) throws Topic
zookeeperSettings.getZkConnectionTimeoutMs(),
nakadiSettings);
final KafkaLocationManager kafkaLocationManager = new KafkaLocationManager(zooKeeperHolder, kafkaSettings);
final KafkaFactory kafkaFactory = new KafkaFactory(new KafkaLocationManager(zooKeeperHolder, kafkaSettings),
final KafkaFactory kafkaFactory = new KafkaFactory(kafkaLocationManager,
nakadiSettings.getKafkaActiveProducersCount());
final KafkaZookeeper zk = new KafkaZookeeper(zooKeeperHolder, objectMapper);
final KafkaTopicRepository kafkaTopicRepository =
Expand Down

0 comments on commit b9d3658

Please sign in to comment.