From 86787f3bc8c20f7f7df6dc6e69a80427f2ed88c9 Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Tue, 13 Feb 2024 12:22:53 -0600 Subject: [PATCH] Start DynamicConfigurationManager directly after construction --- .../org/whispersystems/textsecuregcm/WhisperServerService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java b/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java index 4f9a76a29..445a7c0fe 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java @@ -317,6 +317,7 @@ public void run(WhisperServerConfiguration config, Environment environment) thro config.getAppConfig().getEnvironment(), config.getAppConfig().getConfigurationName(), DynamicConfiguration.class); + dynamicConfigurationManager.start(); MetricsUtil.configureRegistries(config, environment, dynamicConfigurationManager); @@ -528,8 +529,6 @@ public void run(WhisperServerConfiguration config, Environment environment) thro ExternalServiceCredentialsGenerator svr3CredentialsGenerator = SecureValueRecovery3Controller.credentialsGenerator( config.getSvr3Configuration()); - dynamicConfigurationManager.start(); - ExperimentEnrollmentManager experimentEnrollmentManager = new ExperimentEnrollmentManager( dynamicConfigurationManager); RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager = new RegistrationRecoveryPasswordsManager(