fix: migrate to go.etcd.io import path (#9987)

with the merge of https://github.com/etcd-io/etcd/pull/11823
etcd v3.5.0 will now have a properly imported versioned path

this fixes our pending migration to newer repo
This commit is contained in:
Harshavardhana
2020-07-07 19:04:29 -07:00
committed by GitHub
parent aa4d1021eb
commit 72e0745e2f
14 changed files with 5315 additions and 473 deletions

View File

@@ -39,6 +39,7 @@ import (
"sync"
"time"
"github.com/mattn/go-ieproxy"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/handlers"
@@ -453,7 +454,7 @@ func newCustomHTTPTransport(tlsConfig *tls.Config, dialTimeout time.Duration) fu
// For more details about various values used here refer
// https://golang.org/pkg/net/http/#Transport documentation
tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
Proxy: ieproxy.GetProxyFunc(),
DialContext: xhttp.NewCustomDialContext(dialTimeout),
MaxIdleConnsPerHost: 16,
MaxIdleConns: 16,