Skip to content

Commit

Permalink
avoid silently failing to create actuator healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesmst committed May 13, 2024
1 parent b91340c commit cced054
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.springframework.boot.actuate.health.HealthEndpoint;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
Expand Down Expand Up @@ -68,7 +67,6 @@ BindableService grpcHealthService(final HealthStatusManager healthStatusManager)
@Bean
@GrpcService
@ConditionalOnProperty(prefix = "grpc.server", name = "health-service-type", havingValue = "ACTUATOR")
@ConditionalOnBean(HealthEndpoint.class)
BindableService grpcHealthServiceActuator(final HealthEndpoint healthStatusManager) {
return new ActuatorGrpcHealth(healthStatusManager);
}
Expand Down

0 comments on commit cced054

Please sign in to comment.