[client] wire client -> mgmt is healthy check to proper gRPC API (#6421)

This commit is contained in:
Riccardo Manfrin
2026-07-01 19:10:50 +02:00
committed by GitHub
parent 7c0d8cbae0
commit 0aa0f7c76b

View File

@@ -536,7 +536,7 @@ func (c *GrpcClient) IsHealthy() bool {
ctx, cancel := context.WithTimeout(c.ctx, healthCheckTimeout)
defer cancel()
_, err := c.realClient.GetServerKey(ctx, &proto.Empty{})
_, err := c.realClient.IsHealthy(ctx, &proto.Empty{})
if err != nil {
c.notifyDisconnected(err)
log.Warnf("health check returned: %s", err)