mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
client: use httpActionDo in httpClusterClient
This commit is contained in:
parent
c282664c23
commit
3eb126af4d
@ -25,7 +25,7 @@ import (
|
||||
|
||||
func newHTTPClusterClient(tr *http.Transport, eps []string) (*httpClusterClient, error) {
|
||||
c := httpClusterClient{
|
||||
endpoints: make([]*httpClient, len(eps)),
|
||||
endpoints: make([]httpActionDo, len(eps)),
|
||||
}
|
||||
|
||||
for i, ep := range eps {
|
||||
@ -44,7 +44,7 @@ func newHTTPClusterClient(tr *http.Transport, eps []string) (*httpClusterClient,
|
||||
}
|
||||
|
||||
type httpClusterClient struct {
|
||||
endpoints []*httpClient
|
||||
endpoints []httpActionDo
|
||||
}
|
||||
|
||||
func (c *httpClusterClient) do(ctx context.Context, act httpAction) (*http.Response, []byte, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user