Skip to content

Commit

Permalink
try to make linter happy
Browse files Browse the repository at this point in the history
Signed-off-by: iosmanthus <[email protected]>
  • Loading branch information
iosmanthus committed Jan 24, 2025
1 parent 480a5e7 commit 22ba864
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ func (a *connArray) monitoredDial(ctx context.Context, connName, target string,
conn = &monitoredConn{
Name: connName,
}
// grpc.NewClient doesn't support timeout options, so we have to use grpc.DialContext here.
// This API will be supported throughout 1.x
//nolint:staticcheck
conn.ClientConn, err = grpc.DialContext(ctx, target, opts...)
if err != nil {
return nil, err
Expand Down
3 changes: 3 additions & 0 deletions internal/locate/store_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,9 @@ func createKVHealthClient(ctx context.Context, addr string) (*grpc.ClientConn, h
opt = grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig))
}
keepAlive := cfg.TiKVClient.GrpcKeepAliveTime
// grpc.NewClient doesn't support timeout options, so we have to use grpc.DialContext here.
// This API will be supported throughout 1.x
//nolint:staticcheck
conn, err := grpc.DialContext(
ctx,
addr,
Expand Down

0 comments on commit 22ba864

Please sign in to comment.