Skip to content

Commit

Permalink
Call pd.NewClientWithContext in NewClientWithOpts (#1019)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Reid <areid@akamai.com>
Co-authored-by: disksing <i@disksing.com>
  • Loading branch information
healthwaite and disksing authored Oct 20, 2023
1 parent e08b7c4 commit 33e722e
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 33e722e

Please sign in to comment.