Skip to content

Commit ef27ef0

Browse files
committed
copilot review
1 parent bdc985f commit ef27ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/components/jd/grpc_wait_strategy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (g *GRPCHealthStrategy) WaitUntilReady(ctx context.Context, target tcwait.S
6464
}
6565

6666
// Get host and port
67-
host, err := framework.GetHost(target.(tc.Container)) //nolint:contextcheck //don't want modify the signture of GetHost() yet
67+
host, err := framework.GetHost(target.(tc.Container)) //nolint:contextcheck //don't want modify the signature of GetHost() yet
6868
if err != nil {
6969
continue
7070
}
@@ -105,7 +105,7 @@ func (g *GRPCHealthStrategy) tryHealthCheck(ctx context.Context, address string,
105105
if err != nil {
106106
return err
107107
}
108-
defer conn.Close()
108+
defer func() { _ = conn.Close() }()
109109

110110
// Create health check client
111111
healthClient := grpc_health_v1.NewHealthClient(conn)

0 commit comments

Comments
 (0)