rpc: fix setting client in DialHTTPWithClient (#26470)

pull/26487/head
lightclient 2 years ago committed by GitHub
parent c125e6e00c
commit 6f858fa806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      rpc/http.go

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

Loading…
Cancel
Save