From 6f858fa806c43d6a5af6f5213b4aae517136378a Mon Sep 17 00:00:00 2001 From: lightclient <14004106+lightclient@users.noreply.github.com> Date: Thu, 12 Jan 2023 03:04:34 -0700 Subject: [PATCH] rpc: fix setting client in DialHTTPWithClient (#26470) --- rpc/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/http.go b/rpc/http.go index bbabe15bad..074c57ab1a 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -137,6 +137,7 @@ func DialHTTPWithClient(endpoint string, client *http.Client) (*Client, error) { } var cfg clientConfig + cfg.httpClient = client fn := newClientTransportHTTP(endpoint, &cfg) return newClient(context.Background(), fn) }