Browse Source

Polish

pull/10168/merge
Brian Clozel 9 years ago
parent
commit
1cf7c32a1e
  1. 6
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeReactiveHealthIndicator.java

6
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeReactiveHealthIndicator.java

@ -93,8 +93,10 @@ public class CompositeReactiveHealthIndicator implements ReactiveHealthIndicator @@ -93,8 +93,10 @@ public class CompositeReactiveHealthIndicator implements ReactiveHealthIndicator
@Override
public Mono<Health> health() {
return Flux.fromIterable(this.indicators.entrySet())
.flatMap((entry) -> Mono.just(entry.getKey())
.zipWith(entry.getValue().health().compose(this.timeoutCompose)))
.flatMap((entry) -> Mono.zip(
Mono.just(entry.getKey()),
entry.getValue().health().compose(this.timeoutCompose))
)
.collectMap(Tuple2::getT1, Tuple2::getT2)
.map(this.healthAggregator::aggregate);
}

Loading…
Cancel
Save