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

@@ -32,6 +32,7 @@ import (
"time"
"github.com/inconshreveable/go-update"
"github.com/mattn/go-ieproxy"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/env"
@@ -408,7 +409,7 @@ const updateTimeout = 10 * time.Second
func getUpdateTransport(timeout time.Duration) http.RoundTripper {
var updateTransport http.RoundTripper = &http.Transport{
Proxy: http.ProxyFromEnvironment,
Proxy: ieproxy.GetProxyFunc(),
DialContext: xhttp.NewCustomDialContext(timeout),
IdleConnTimeout: timeout,
TLSHandshakeTimeout: timeout,