Skip to content

Commit

Permalink
Polish "Use non-blocking API in CouchbaseReactiveHealthIndicator"
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Sep 27, 2022
1 parent f51c4c3 commit 8f598f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -16,7 +16,6 @@

package org.springframework.boot.actuate.couchbase;

import com.couchbase.client.core.diagnostics.DiagnosticsResult;
import com.couchbase.client.java.Cluster;
import reactor.core.publisher.Mono;

Expand Down Expand Up @@ -46,7 +45,7 @@ public CouchbaseReactiveHealthIndicator(Cluster cluster) {

@Override
protected Mono<Health> doHealthCheck(Health.Builder builder) {
return this.cluster.reactive().diagnostics().map(diagnostics -> {
return this.cluster.reactive().diagnostics().map((diagnostics) -> {
new CouchbaseHealth(diagnostics).applyTo(builder);
return builder.build();
});
Expand Down
Expand Up @@ -30,10 +30,10 @@
import com.couchbase.client.java.Cluster;
import com.couchbase.client.java.ReactiveCluster;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.Status;
import reactor.core.publisher.Mono;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.given;
Expand Down

0 comments on commit 8f598f8

Please sign in to comment.