rpc: fix setting client in DialHTTPWithClient #26470

This commit is contained in:
JukLee0ira 2025-04-28 10:12:06 +08:00 committed by Daniel Liu
parent b899363d17
commit 16969b1569

View file

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