Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanoy committed Aug 23, 2021
1 parent 56e219a commit 0ddabb2
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -40,15 +38,15 @@ public class RuntimeConfigService {
*/
void onStart(@Observes StartupEvent ev) {
createRuntimeConfigurations();
loadModifiedWebhooks();
loadModifiedConfigs();
LOGGER.debug("runtime configurations loaded.");
}

/**
* 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);
}
Expand Down

0 comments on commit 0ddabb2

Please sign in to comment.