MINOR: Remove repeat creation of `ZkConfigRepository`
In `KafkaServer, `ZkConfigRepository` is just a wrapper of `zkClient`, so  we don't need to create a new one.
Reviewers: Jason Gustafson
@@ -256,9 +256,15 @@ class KafkaServer(
logDirFailureChannel = new LogDirFailureChannel(config.logDirs.size)
/* start log manager */
- _logManager = LogManager(config, initialOfflineDirs,
- new ZkConfigRepository(new AdminZkClient(zkClient)),
- kafkaScheduler, time, brokerTopicStats, logDirFailureChannel, config.usesTopicId)
+ _logManager = LogManager(
+ config,
+ initialOfflineDirs,
+ configRepository,
+ kafkaScheduler,
+ time,
+ brokerTopicStats,
+ logDirFailureChannel,
+ config.usesTopicId)
_brokerState = BrokerState.RECOVERY
logManager.startup(zkClient.getAllTopicsInCluster())
