Refactor HTTP transports (#16222)

This commit is contained in:
Aditya Manthramurthy
2022-12-12 20:31:21 -08:00
committed by GitHub
parent 37e20f6ef2
commit 2d60bf8c50
8 changed files with 232 additions and 177 deletions

View File

@@ -66,7 +66,6 @@ import (
"github.com/minio/minio/internal/crypto"
"github.com/minio/minio/internal/hash"
"github.com/minio/minio/internal/logger"
"github.com/minio/minio/internal/rest"
"github.com/minio/pkg/bucket/policy"
)
@@ -112,7 +111,7 @@ func TestMain(m *testing.M) {
// Initialize globalConsoleSys system
globalConsoleSys = NewConsoleLogger(context.Background())
globalInternodeTransport = newInternodeHTTPTransport(nil, rest.DefaultTimeout)()
globalInternodeTransport = NewInternodeHTTPTransport()()
initHelp()