From 16969b156907c667a47db5ef5f41ef1198535d27 Mon Sep 17 00:00:00 2001 From: JukLee0ira Date: Mon, 28 Apr 2025 10:12:06 +0800 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 b339868b3e..69a13a074c 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) }