Skip to content

Commit 3d7c3ce

Browse files
authored
Merge pull request #529 from yidongnan/fix/client-health-status-indicator
If the grpc client is unavailable then the service is "out of service"
2 parents c3b6aad + 434979b commit 3d7c3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/autoconfigure/GrpcClientHealthAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public HealthIndicator grpcChannelHealthIndicator(final GrpcChannelFactory facto
5555
final ImmutableMap<String, ConnectivityState> states = ImmutableMap.copyOf(factory.getConnectivityState());
5656
final Health.Builder health;
5757
if (states.containsValue(ConnectivityState.TRANSIENT_FAILURE)) {
58-
health = Health.down();
58+
health = Health.outOfService();
5959
} else {
6060
health = Health.up();
6161
}

0 commit comments

Comments
 (0)