Merge pull request #1325 from herder/fix_registry_failures_report_time_mismatch
Fix lastFetch status calculation.
This commit is contained in:
@@ -77,7 +77,7 @@ public class EurekaHealthIndicator implements DiscoveryHealthIndicator {
|
||||
status = new Status("UP",
|
||||
"Eureka discovery client has not yet successfully connected to a Eureka server");
|
||||
}
|
||||
else if (lastFetch > clientConfig.getRegistryFetchIntervalSeconds() * 2) {
|
||||
else if (lastFetch > clientConfig.getRegistryFetchIntervalSeconds() * 2000) {
|
||||
status = new Status("UP",
|
||||
"Eureka discovery client is reporting failures to connect to a Eureka server");
|
||||
builder.withDetail("renewalPeriod",
|
||||
|
||||
Reference in New Issue
Block a user