Skip to content

Commit

Permalink
fix: move config validation to startup stage so bad configs will brea…
Browse files Browse the repository at this point in the history
…k the component
  • Loading branch information
robcmann committed Feb 13, 2024
1 parent dc4252d commit e58a5ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ protected void install() throws InterruptedException {
context.get(CertificateManager.class).updateCertificatesConfiguration(new CertificatesConfig(getConfig()));
initializeInfrastructure();
initializeHandlers();
subscribeToConfigChanges();
}

private int getValidCloudCallQueueSize(Topics topics) {
Expand Down Expand Up @@ -214,6 +213,7 @@ private void configChangeHandler(WhatHappened whatHappened, Node node) {
@Override
protected void startup() throws InterruptedException {
context.get(CertificateManager.class).startMonitors();
subscribeToConfigChanges();
super.startup();
}

Expand Down

0 comments on commit e58a5ed

Please sign in to comment.