From f17a399a37fbbc1f4e64788328282db528cd8880 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Thu, 7 Dec 2017 08:33:26 -0600 Subject: [PATCH] adjust to single http client --- cluster.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cluster.go b/cluster.go index c44f35d55..f6966a333 100644 --- a/cluster.go +++ b/cluster.go @@ -24,6 +24,7 @@ import ( "io/ioutil" "log" "math/rand" + "net/http" "os" "path/filepath" "sort" @@ -190,6 +191,9 @@ type Cluster struct { // The writer for any logging. LogOutput io.Writer + + // + RemoteClient *http.Client } // NewCluster returns a new instance of Cluster with defaults. @@ -1031,7 +1035,7 @@ func (c *Cluster) FollowResizeInstruction(instr *internal.ResizeInstruction) err } // Create a client for calling remote nodes. - client := NewInternalHTTPClientFromURI(&c.URI, nil) // TODO: ClientOptions + client := NewInternalHTTPClientFromURI(&c.URI, GetHTTPClient(nil)) // TODO: ClientOptions // Request each source file in ResizeSources. for _, src := range instr.Sources {