@@ -66,7 +66,7 @@ func LoadConfigFromEnv() (*ClientConfig, error) {
66
66
MaxRetryAttempts : getEnvAsInt ("MAX_RETRY_ATTEMPTS" , DefaultMaxRetryAttempts ),
67
67
MaxConcurrentRequests : getEnvAsInt ("MAX_CONCURRENT_REQUESTS" , DefaultMaxConcurrentRequests ),
68
68
EnableDynamicRateLimiting : getEnvAsBool ("ENABLE_DYNAMIC_RATE_LIMITING" , DefaultEnableDynamicRateLimiting ),
69
- CustomTimeout : getEnvAsDuration ("CUSTOM_TIMEOUT" , DefaultCustomTimeout ),
69
+ Timeout : getEnvAsDuration ("CUSTOM_TIMEOUT" , DefaultCustomTimeout ),
70
70
TokenRefreshBufferPeriod : getEnvAsDuration ("TOKEN_REFRESH_BUFFER_PERIOD" , DefaultTokenRefreshBufferPeriod ),
71
71
TotalRetryDuration : getEnvAsDuration ("TOTAL_RETRY_DURATION" , DefaultTotalRetryDuration ),
72
72
EnableConcurrencyManagement : getEnvAsBool ("ENABLE_CONCURRENCY_MANAGEMENT" , DefaultEnableConcurrencyManagement ),
@@ -111,7 +111,7 @@ func (c ClientConfig) validateClientConfig() error {
111
111
}
112
112
}
113
113
114
- if c .CustomTimeout .Seconds () < 0 {
114
+ if c .Timeout .Seconds () < 0 {
115
115
return errors .New ("timeout cannot be less than 0 seconds" )
116
116
}
117
117
@@ -139,7 +139,7 @@ func (c *ClientConfig) SetDefaultValuesClientConfig() {
139
139
setDefaultInt (& c .MaxRetryAttempts , DefaultMaxRetryAttempts , 1 )
140
140
setDefaultInt (& c .MaxConcurrentRequests , DefaultMaxConcurrentRequests , 1 )
141
141
setDefaultBool (& c .EnableDynamicRateLimiting , DefaultEnableDynamicRateLimiting )
142
- setDefaultDuration (& c .CustomTimeout , DefaultCustomTimeout )
142
+ setDefaultDuration (& c .Timeout , DefaultCustomTimeout )
143
143
setDefaultDuration (& c .TokenRefreshBufferPeriod , DefaultTokenRefreshBufferPeriod )
144
144
setDefaultDuration (& c .TotalRetryDuration , DefaultTotalRetryDuration )
145
145
setDefaultBool (& c .EnableConcurrencyManagement , DefaultEnableConcurrencyManagement )
0 commit comments