fix: check for gateway backend online without http request (#10924)

fixes #10921
This commit is contained in:
Harshavardhana
2020-11-19 10:38:02 -08:00
committed by GitHub
parent d778d9493f
commit 0f9e125cf3
4 changed files with 20 additions and 18 deletions

View File

@@ -414,7 +414,7 @@ func (l *gcsGateway) Shutdown(ctx context.Context) error {
// StorageInfo - Not relevant to GCS backend.
func (l *gcsGateway) StorageInfo(ctx context.Context, _ bool) (si minio.StorageInfo, _ []error) {
si.Backend.Type = minio.BackendGateway
si.Backend.GatewayOnline = minio.IsBackendOnline(ctx, l.httpClient, "https://storage.googleapis.com")
si.Backend.GatewayOnline = minio.IsBackendOnline(ctx, "storage.googleapis.com:443")
return si, nil
}