From 0ddabb22d636073d06716dbeb80f2e3922b01797 Mon Sep 17 00:00:00 2001 From: Kevin McAnoy Date: Mon, 23 Aug 2021 08:45:10 -0700 Subject: [PATCH] rename method --- .../redhat/labs/lodestar/service/RuntimeConfigService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/redhat/labs/lodestar/service/RuntimeConfigService.java b/src/main/java/com/redhat/labs/lodestar/service/RuntimeConfigService.java index 659f854..356f7a9 100644 --- a/src/main/java/com/redhat/labs/lodestar/service/RuntimeConfigService.java +++ b/src/main/java/com/redhat/labs/lodestar/service/RuntimeConfigService.java @@ -1,7 +1,5 @@ package com.redhat.labs.lodestar.service; -import java.io.IOException; -import java.nio.file.*; import java.util.*; import java.util.stream.Collectors; @@ -40,7 +38,7 @@ public class RuntimeConfigService { */ void onStart(@Observes StartupEvent ev) { createRuntimeConfigurations(); - loadModifiedWebhooks(); + loadModifiedConfigs(); LOGGER.debug("runtime configurations loaded."); } @@ -48,7 +46,7 @@ void onStart(@Observes StartupEvent ev) { * Can't trust modification of config maps meta-data. need to read the data */ @Scheduled(every = "60s", delayed = "10s") - void loadModifiedWebhooks() { + void loadModifiedConfigs() { baseConfiguration.loadFromConfigMapIfChanged(); overrideConfigurations.values().forEach(RuntimeConfiguration::loadFromConfigMapIfChanged); }