From 81caf3592620e7a3cf8bb347ae5e1a2e4a277718 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 23 Sep 2020 10:43:42 -0700 Subject: [PATCH] fix: reduce healthcheck interval for storage rest client (#10544) --- cmd/storage-rest-client.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/storage-rest-client.go b/cmd/storage-rest-client.go index 438364689..6ce79251d 100644 --- a/cmd/storage-rest-client.go +++ b/cmd/storage-rest-client.go @@ -29,7 +29,6 @@ import ( "path" "strconv" "strings" - "time" "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/cmd/http" @@ -669,7 +668,6 @@ func newStorageRESTClient(endpoint Endpoint) *storageRESTClient { trFn := newInternodeHTTPTransport(tlsConfig, rest.DefaultRESTTimeout) restClient := rest.NewClient(serverURL, trFn, newAuthToken) - restClient.HealthCheckInterval = 500 * time.Millisecond restClient.HealthCheckFn = func() bool { ctx, cancel := context.WithTimeout(GlobalContext, restClient.HealthCheckTimeout) // Instantiate a new rest client for healthcheck