init() globalAPIConfig only once

This commit is contained in:
Harshavardhana 2021-08-30 22:46:54 -07:00
parent 76b3d3c559
commit 2077d27053
1 changed files with 0 additions and 2 deletions

View File

@ -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)