|
|
@ -852,6 +852,10 @@ func (client *peerRESTClient) ConsoleLog(logCh chan interface{}, doneCh <-chan s |
|
|
|
// but 'all' will contain nil entry for local client.
|
|
|
|
// but 'all' will contain nil entry for local client.
|
|
|
|
// The 'all' slice will be in the same order across the cluster.
|
|
|
|
// The 'all' slice will be in the same order across the cluster.
|
|
|
|
func newPeerRestClients(endpoints EndpointServerSets) (remote, all []*peerRESTClient) { |
|
|
|
func newPeerRestClients(endpoints EndpointServerSets) (remote, all []*peerRESTClient) { |
|
|
|
|
|
|
|
if !globalIsDistErasure { |
|
|
|
|
|
|
|
// Only useful in distributed setups
|
|
|
|
|
|
|
|
return nil, nil |
|
|
|
|
|
|
|
} |
|
|
|
hosts := endpoints.hostsSorted() |
|
|
|
hosts := endpoints.hostsSorted() |
|
|
|
remote = make([]*peerRESTClient, 0, len(hosts)) |
|
|
|
remote = make([]*peerRESTClient, 0, len(hosts)) |
|
|
|
all = make([]*peerRESTClient, len(hosts)) |
|
|
|
all = make([]*peerRESTClient, len(hosts)) |
|
|
|