Przeglądaj źródła

client: use httpActionDo in httpClusterClient

Brian Waldon 11 lat temu
rodzic
commit
3eb126af4d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      client/cluster.go

+ 2 - 2
client/cluster.go

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