From c70e2e211063d25c6c7f5de845f4a89396914b3e Mon Sep 17 00:00:00 2001 From: "lightclient@protonmail.com" Date: Tue, 10 Jan 2023 15:12:21 -0700 Subject: [PATCH] rpc/http: correctly set http client to provided client --- rpc/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/http.go b/rpc/http.go index bbabe15bada3..074c57ab1ad3 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) }