Skip to content

Commit 3704a08

Browse files
committed
Bumping versions
1 parent 016ec71 commit 3704a08

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/reload/ConfigReloadAutoConfiguration.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ public ConfigurationUpdateStrategy configurationUpdateStrategy(ConfigReloadPrope
6565
ConfigurableApplicationContext ctx, Optional<RestartEndpoint> restarter, ContextRefresher refresher) {
6666
String strategyName = properties.getStrategy().name();
6767
return switch (properties.getStrategy()) {
68-
case RESTART_CONTEXT -> {
69-
restarter.orElseThrow(() -> new AssertionError("Restart endpoint is not enabled"));
70-
yield new ConfigurationUpdateStrategy(strategyName, () -> {
71-
wait(properties);
72-
restarter.get().restart();
73-
});
74-
}
75-
case REFRESH -> new ConfigurationUpdateStrategy(strategyName, refresher::refresh);
76-
case SHUTDOWN -> new ConfigurationUpdateStrategy(strategyName, () -> {
68+
case RESTART_CONTEXT -> {
69+
restarter.orElseThrow(() -> new AssertionError("Restart endpoint is not enabled"));
70+
yield new ConfigurationUpdateStrategy(strategyName, () -> {
7771
wait(properties);
78-
ctx.close();
72+
restarter.get().restart();
7973
});
74+
}
75+
case REFRESH -> new ConfigurationUpdateStrategy(strategyName, refresher::refresh);
76+
case SHUTDOWN -> new ConfigurationUpdateStrategy(strategyName, () -> {
77+
wait(properties);
78+
ctx.close();
79+
});
8080
};
8181
}
8282

0 commit comments

Comments
 (0)