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) }