From 33e722ef0bf403092f8fe05ca2d423f14d9e0d9a Mon Sep 17 00:00:00 2001 From: healthwaite <148101100+healthwaite@users.noreply.github.com> Date: Fri, 20 Oct 2023 08:39:44 +0100 Subject: [PATCH] Call pd.NewClientWithContext in NewClientWithOpts (#1019) Signed-off-by: Alex Reid Co-authored-by: disksing --- rawkv/rawkv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rawkv/rawkv.go b/rawkv/rawkv.go index 4e9f217db..ddae7289b 100644 --- a/rawkv/rawkv.go +++ b/rawkv/rawkv.go @@ -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,