mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
adjust to single http client
This commit is contained in:
parent
83ba680f83
commit
f17a399a37
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue