From 87bda2f46f10388343946b9120788bdb4e083d9c Mon Sep 17 00:00:00 2001 From: Yusuke Kato Date: Thu, 1 Feb 2024 17:16:56 +0900 Subject: [PATCH] Update internal/net/grpc/pool/pool.go Signed-off-by: kpango --- internal/net/grpc/pool/pool.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/net/grpc/pool/pool.go b/internal/net/grpc/pool/pool.go index 3ad334ca4a4..34c17bca027 100644 --- a/internal/net/grpc/pool/pool.go +++ b/internal/net/grpc/pool/pool.go @@ -797,14 +797,14 @@ func isHealthy(ctx context.Context, conn *ClientConn) bool { log.Debugf("gRPC target %s's connection status will be Ready soon\tstatus: %s", conn.Target(), state.String()) return true case connectivity.Idle: - log.Debug("gRPC target %s's connection status is waiting for target\tstatus: %s", conn.Target(), state.String()) + log.Debugf("gRPC target %s's connection status is waiting for target\tstatus: %s", conn.Target(), state.String()) conn.Connect() if conn.WaitForStateChange(ctx, state) { state = conn.GetState() if state == connectivity.Ready || state == connectivity.Connecting { - log.Debug("gRPC target %s's connection status enabled for target\tstatus: %s", conn.Target(), state.String()) + log.Debugf("gRPC target %s's connection status enabled for target\tstatus: %s", conn.Target(), state.String()) + return true } - return true } return false case connectivity.Shutdown, connectivity.TransientFailure: