Skip to content

Commit 434979b

Browse files
committed
If the grpc client is unavailable then the service is "out of service"
Instead of being completely down (broken). Fixes #432
1 parent d2d50ed commit 434979b

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)