mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
client: s/newHTTPClusterClient/NewHTTPClient/
This commit is contained in:
parent
3eb126af4d
commit
1130273178
@ -23,7 +23,7 @@ import (
|
||||
"github.com/coreos/etcd/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
)
|
||||
|
||||
func newHTTPClusterClient(tr *http.Transport, eps []string) (*httpClusterClient, error) {
|
||||
func NewHTTPClient(tr *http.Transport, eps []string) (*httpClusterClient, error) {
|
||||
c := httpClusterClient{
|
||||
endpoints: make([]httpActionDo, len(eps)),
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ func NewDiscoveryKeysAPI(tr *http.Transport, eps []string, to time.Duration) (Ke
|
||||
}
|
||||
|
||||
func newHTTPKeysAPIWithPrefix(tr *http.Transport, eps []string, to time.Duration, prefix string) (*httpKeysAPI, error) {
|
||||
c, err := newHTTPClusterClient(tr, eps)
|
||||
c, err := NewHTTPClient(tr, eps)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ var (
|
||||
)
|
||||
|
||||
func NewMembersAPI(tr *http.Transport, eps []string, to time.Duration) (MembersAPI, error) {
|
||||
c, err := newHTTPClusterClient(tr, eps)
|
||||
c, err := NewHTTPClient(tr, eps)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user