Skip to content

Commit

Permalink
chore: Set default values for client configuration in httpclient
Browse files Browse the repository at this point in the history
  • Loading branch information
ShocOne committed Jun 20, 2024
1 parent f87994e commit 8432d4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions httpclient/config_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func validateClientConfig(config ClientConfig, populateDefaults bool) error {
return nil
}

// SetDefaultValuesClientConfig sets default values for the client configuration.
func SetDefaultValuesClientConfig(config *ClientConfig) {

if !config.HideSensitiveData {
Expand Down Expand Up @@ -175,4 +176,8 @@ func SetDefaultValuesClientConfig(config *ClientConfig) {
config.MaxRedirects = DefaultMaxRedirects
}

if !config.EnableConcurrencyManagement {
config.EnableConcurrencyManagement = DefaultEnableConcurrencyManagement
}

}

0 comments on commit 8432d4d

Please sign in to comment.