mirror of
https://github.com/minio/minio.git
synced 2025-01-11 06:53:22 -05:00
init() globalAPIConfig only once
This commit is contained in:
parent
76b3d3c559
commit
2077d27053
@ -412,8 +412,6 @@ func lookupConfigs(s config.Config, setDriveCounts []int) {
|
||||
logger.LogIf(ctx, fmt.Errorf("Invalid api configuration: %w", err))
|
||||
}
|
||||
|
||||
globalAPIConfig.init(apiConfig, setDriveCounts)
|
||||
|
||||
// Initialize remote instance transport once.
|
||||
getRemoteInstanceTransportOnce.Do(func() {
|
||||
getRemoteInstanceTransport = newGatewayHTTPTransport(apiConfig.RemoteTransportDeadline)
|
||||
|
Loading…
Reference in New Issue
Block a user