@ -334,10 +334,9 @@ public final class ServiceInstanceListSupplierBuilder {
@@ -334,10 +334,9 @@ public final class ServiceInstanceListSupplierBuilder {
ReactiveLoadBalancer . Factory < ServiceInstance > loadBalancerClientFactory ) {
return new HealthCheckServiceInstanceListSupplier ( delegate , loadBalancerClientFactory ,
( serviceInstance , healthCheckPath ) - > webClient . get ( )
. uri ( UriComponentsBuilder . fromUriString ( getUri ( serviceInstance , healthCheckPath ) ) . build ( )
. toUri ( ) )
. uri ( UriComponentsBuilder . fromUriString ( getUri ( serviceInstance , healthCheckPath ) ) . build ( ) . toUri ( ) )
. exchange ( ) . flatMap ( clientResponse - > clientResponse . releaseBody ( )
. thenReturn ( HttpStatus . OK . value ( ) = = clientResponse . rawStatusCode ( ) ) ) ) ;
. thenReturn ( HttpStatus . OK . equals ( clientResponse . statusCode ( ) ) ) ) ) ;
}
private ServiceInstanceListSupplier blockingHealthCheckServiceInstanceListSupplier ( RestTemplate restTemplate ,
@ -345,7 +344,8 @@ public final class ServiceInstanceListSupplierBuilder {
@@ -345,7 +344,8 @@ public final class ServiceInstanceListSupplierBuilder {
ReactiveLoadBalancer . Factory < ServiceInstance > loadBalancerClientFactory ) {
return new HealthCheckServiceInstanceListSupplier ( delegate , loadBalancerClientFactory ,
( serviceInstance , healthCheckPath ) - > Mono . defer ( ( ) - > {
URI uri = UriComponentsBuilder . fromUriString ( getUri ( serviceInstance , healthCheckPath ) ) . build ( )
URI uri = UriComponentsBuilder . fromUriString ( getUri ( serviceInstance , healthCheckPath ) )
. build ( )
. toUri ( ) ;
try {
return Mono