This commit is contained in:
Olga Maciaszek-Sharma
2022-06-28 18:51:57 +02:00
parent 079ae668c0
commit b633c8af96
@@ -114,7 +114,7 @@ public class EurekaHealthCheckHandler
DiscoveryCompositeHealthContributor indicator = (DiscoveryCompositeHealthContributor) entry.getValue();
indicator.getIndicators().forEach((name, discoveryHealthIndicator) -> {
if (!(discoveryHealthIndicator instanceof EurekaHealthIndicator)) {
healthContributors.put(name, (HealthIndicator) discoveryHealthIndicator::health);
this.healthContributors.put(name, (HealthIndicator) discoveryHealthIndicator::health);
}
});
}