Skip to content

Commit 528ea81

Browse files
committed
Fix health condition
1 parent 9e01b75 commit 528ea81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcHealthServiceAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.springframework.context.annotation.Configuration;
2626

2727
import io.grpc.BindableService;
28-
import io.grpc.protobuf.services.ProtoReflectionService;
2928
import io.grpc.services.HealthStatusManager;
3029
import net.devh.boot.grpc.server.service.GrpcService;
3130

@@ -35,7 +34,7 @@
3534
* @author Daniel Theuke ([email protected])
3635
*/
3736
@Configuration
38-
@ConditionalOnClass(ProtoReflectionService.class)
37+
@ConditionalOnClass(HealthStatusManager.class)
3938
@ConditionalOnProperty(prefix = "grpc.server", name = "health-service-enabled", matchIfMissing = true)
4039
@AutoConfigureBefore(GrpcServerFactoryAutoConfiguration.class)
4140
public class GrpcHealthServiceAutoConfiguration {

0 commit comments

Comments
 (0)