adjust to single http client

This commit is contained in:
Todd Gruben 2017-12-07 08:33:26 -06:00
parent 83ba680f83
commit f17a399a37

View file

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