@@ -66,7 +66,7 @@ func LoadConfigFromEnv() (*ClientConfig, error) {
6666 MaxRetryAttempts : getEnvAsInt ("MAX_RETRY_ATTEMPTS" , DefaultMaxRetryAttempts ),
6767 MaxConcurrentRequests : getEnvAsInt ("MAX_CONCURRENT_REQUESTS" , DefaultMaxConcurrentRequests ),
6868 EnableDynamicRateLimiting : getEnvAsBool ("ENABLE_DYNAMIC_RATE_LIMITING" , DefaultEnableDynamicRateLimiting ),
69- CustomTimeout : getEnvAsDuration ("CUSTOM_TIMEOUT" , DefaultCustomTimeout ),
69+ Timeout : getEnvAsDuration ("CUSTOM_TIMEOUT" , DefaultCustomTimeout ),
7070 TokenRefreshBufferPeriod : getEnvAsDuration ("TOKEN_REFRESH_BUFFER_PERIOD" , DefaultTokenRefreshBufferPeriod ),
7171 TotalRetryDuration : getEnvAsDuration ("TOTAL_RETRY_DURATION" , DefaultTotalRetryDuration ),
7272 EnableConcurrencyManagement : getEnvAsBool ("ENABLE_CONCURRENCY_MANAGEMENT" , DefaultEnableConcurrencyManagement ),
@@ -111,7 +111,7 @@ func (c ClientConfig) validateClientConfig() error {
111111 }
112112 }
113113
114- if c .CustomTimeout .Seconds () < 0 {
114+ if c .Timeout .Seconds () < 0 {
115115 return errors .New ("timeout cannot be less than 0 seconds" )
116116 }
117117
@@ -139,7 +139,7 @@ func (c *ClientConfig) SetDefaultValuesClientConfig() {
139139 setDefaultInt (& c .MaxRetryAttempts , DefaultMaxRetryAttempts , 1 )
140140 setDefaultInt (& c .MaxConcurrentRequests , DefaultMaxConcurrentRequests , 1 )
141141 setDefaultBool (& c .EnableDynamicRateLimiting , DefaultEnableDynamicRateLimiting )
142- setDefaultDuration (& c .CustomTimeout , DefaultCustomTimeout )
142+ setDefaultDuration (& c .Timeout , DefaultCustomTimeout )
143143 setDefaultDuration (& c .TokenRefreshBufferPeriod , DefaultTokenRefreshBufferPeriod )
144144 setDefaultDuration (& c .TotalRetryDuration , DefaultTotalRetryDuration )
145145 setDefaultBool (& c .EnableConcurrencyManagement , DefaultEnableConcurrencyManagement )
0 commit comments