Merge remote-tracking branch 'origin/2.2.x'
# Conflicts: # docs/pom.xml # pom.xml # spring-cloud-commons-dependencies/pom.xml # spring-cloud-commons/pom.xml # spring-cloud-context-integration-tests/pom.xml # spring-cloud-context-webflux-integration-tests/pom.xml # spring-cloud-context/pom.xml # spring-cloud-context/src/test/java/org/springframework/cloud/bootstrap/encrypt/EnvironmentDecryptApplicationInitializerTests.java # spring-cloud-loadbalancer/pom.xml # spring-cloud-starter-loadbalancer/pom.xml # spring-cloud-starter/pom.xml # spring-cloud-test-support/pom.xml
This commit is contained in:
@@ -64,13 +64,14 @@ public class DiscoveryClientServiceInstanceListSupplier
|
||||
resolveTimeout(environment);
|
||||
this.serviceInstances = Flux
|
||||
.defer(() -> Flux.just(delegate.getInstances(serviceId)))
|
||||
.subscribeOn(Schedulers.boundedElastic())
|
||||
.timeout(timeout, Flux.defer(() -> {
|
||||
logTimeout();
|
||||
return Flux.just(new ArrayList<>());
|
||||
})).onErrorResume(error -> {
|
||||
logException(error);
|
||||
return Flux.just(new ArrayList<>());
|
||||
}).subscribeOn(Schedulers.boundedElastic());
|
||||
});
|
||||
}
|
||||
|
||||
public DiscoveryClientServiceInstanceListSupplier(ReactiveDiscoveryClient delegate,
|
||||
|
||||
Reference in New Issue
Block a user