Skip to content

Commit

Permalink
read generic config
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav090420 committed Oct 24, 2024
1 parent bad1a6d commit 0d649f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ protected ConfigStore buildConfigStore(Datastore datastore) {

private Datastore initDataStore(
Config config, List<DocStoreCustomMetricReportingConfig> configurationCounterConfig) {
Config docStoreConfig = config.getConfig(DOC_STORE_CONFIG_KEY);
Config genericConfig = config.getConfig(GENERIC_CONFIG_SERVICE_CONFIG);
Config docStoreConfig = genericConfig.getConfig(DOC_STORE_CONFIG_KEY);
Datastore datastore =
DatastoreProvider.getDatastore(
TypesafeConfigDatastoreConfigExtractor.from(docStoreConfig, DATA_STORE_TYPE).extract());
Expand Down

0 comments on commit 0d649f2

Please sign in to comment.