mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
rpc: fix setting client in DialHTTPWithClient #26470
This commit is contained in:
parent
b899363d17
commit
16969b1569
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