From a9032b52b86d9d8a2b89ebbf47a50bc233565f3f Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 20 Mar 2019 13:20:09 -0700 Subject: [PATCH] Change storageRESTTimeout to 1minute (#7398) --- cmd/storage-rest-client.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/storage-rest-client.go b/cmd/storage-rest-client.go index c5c436164..97a4ca817 100644 --- a/cmd/storage-rest-client.go +++ b/cmd/storage-rest-client.go @@ -25,7 +25,6 @@ import ( "net/url" "path" "strconv" - "time" "encoding/gob" "encoding/hex" @@ -38,10 +37,6 @@ import ( xnet "github.com/minio/minio/pkg/net" ) -// The timeout of TCP connect and sending/receiving -// data for all internode storage REST requests. -const storageRESTTimeout = 5 * time.Minute - func isNetworkError(err error) bool { if err == nil { return false @@ -405,7 +400,7 @@ func newStorageRESTClient(endpoint Endpoint) (*storageRESTClient, error) { } } - restClient, err := rest.NewClient(serverURL, tlsConfig, storageRESTTimeout, newAuthToken) + restClient, err := rest.NewClient(serverURL, tlsConfig, rest.DefaultRESTTimeout, newAuthToken) if err != nil { return nil, err }