Continue to poll for config changes after startup.

This commit is contained in:
Jon Chambers 2021-02-04 13:38:16 -05:00 committed by Jon Chambers
parent b413f665d8
commit 426e6923ac
1 changed files with 8 additions and 6 deletions

View File

@ -73,6 +73,7 @@ public class DynamicConfigurationManager {
}
new Thread(() -> {
while (true) {
try {
retrieveDynamicConfiguration().ifPresent(configuration::set);
} catch (Throwable t) {
@ -80,6 +81,7 @@ public class DynamicConfigurationManager {
}
Util.sleep(5000);
}
}).start();
}