mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-21 02:18:07 +00:00
rpc: fix setting client in DialHTTPWithClient (#26470)
This commit is contained in:
parent
c125e6e00c
commit
6f858fa806
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue