File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/kotlin/no/java/conf Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ fun Application.module() {
3737 val searchClient = searchClient(environment.searchClientConfig())
3838 val searchService = searchService(environment.searchServiceConfig(searchClient))
3939
40- val sleepingPillService = sleepingPillService(httpClient(), environment.endpointConfig(" javazone.sleepingpill " ))
41- val localFileService = localFileService(environment.localFileConfig(" javazone.localfile " ))
40+ val sleepingPillService = sleepingPillService(httpClient(), environment.endpointConfig())
41+ val localFileService = localFileService(environment.localFileConfig())
4242
4343 configureSerialization()
4444 configureMonitoring()
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ fun ApplicationEnvironment.searchServiceConfig(searchClient: SearchClient) =
3939 skipIndex = bool(" elastic.skipindex" )
4040 )
4141
42- fun ApplicationEnvironment.endpointConfig (key : String ) =
43- config.configList(key ).map {
42+ fun ApplicationEnvironment.endpointConfig () =
43+ config.configList(" javazone.sleepingpill " ).map {
4444 EndpointConfig (it.int(" year" ), it.str(" endpoint" ))
4545 }
4646
47- fun ApplicationEnvironment.localFileConfig (key : String ) =
48- config.configList(key ).map {
47+ fun ApplicationEnvironment.localFileConfig () =
48+ config.configList(" javazone.localfile " ).map {
4949 LocalFileConfig (it.int(" year" ), it.str(" LocalFileConfig" ))
5050 }
You can’t perform that action at this time.
0 commit comments