Skip to content

Commit

Permalink
Cleans up countdown calls
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Sep 15, 2023
1 parent 90f7453 commit c0963e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,6 @@ private ConfigurationRepository(
reloadConfiguration(Arrays.asList(CType.values()));
} catch (Exception e) {
LOGGER.debug("Unable to load configuration due to {}", String.valueOf(ExceptionUtils.getRootCause(e)));
try {
Thread.sleep(3000);
} catch (InterruptedException e1) {
Thread.currentThread().interrupt();
LOGGER.debug("Thread was interrupted so we cancel initialization");
}
}

final Set<String> deprecatedAuditKeysInSettings = AuditConfig.getDeprecatedKeys(settings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,6 @@ public void onChange(Map<CType, SecurityDynamicConfiguration<?>> typeToConfig) {
if (cr.isAuditHotReloadingEnabled()) {
eventBus.post(audit);
}

initializationLatch.countDown();
}

private static ConfigV6 getConfigV6(SecurityDynamicConfiguration<?> sdc) {
Expand Down

0 comments on commit c0963e0

Please sign in to comment.