Skip to content

Commit

Permalink
Call pd.NewClientWithContext in NewClientWithOpts
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Reid <[email protected]>
  • Loading branch information
healthwaite committed Oct 16, 2023
1 parent e70513e commit 6bf0674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rawkv/rawkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func NewClientWithOpts(ctx context.Context, pdAddrs []string, opts ...ClientOpt)
}

// Use an unwrapped PDClient to obtain keyspace meta.
pdCli, err := pd.NewClient(pdAddrs, pd.SecurityOption{
pdCli, err := pd.NewClientWithContext(ctx, pdAddrs, pd.SecurityOption{
CAPath: opt.security.ClusterSSLCA,
CertPath: opt.security.ClusterSSLCert,
KeyPath: opt.security.ClusterSSLKey,
Expand Down

0 comments on commit 6bf0674

Please sign in to comment.