rpc: fix setting client in DialHTTPWithClient (#26470)

This commit is contained in:
lightclient 2023-01-12 03:04:34 -07:00 committed by GitHub
parent c125e6e00c
commit 6f858fa806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,7 @@ func DialHTTPWithClient(endpoint string, client *http.Client) (*Client, error) {
} }
var cfg clientConfig var cfg clientConfig
cfg.httpClient = client
fn := newClientTransportHTTP(endpoint, &cfg) fn := newClientTransportHTTP(endpoint, &cfg)
return newClient(context.Background(), fn) return newClient(context.Background(), fn)
} }