Skip to content

Commit

Permalink
chore: Enable concurrency management in httpclient client configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ShocOne committed Jun 20, 2024
1 parent 44e5f6e commit f87994e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func BuildClient(config ClientConfig, populateDefaultValues bool, log logger.Log
}

var concurrencyHandler *concurrency.ConcurrencyHandler
if config.ConcurrencyManagementEnabled {
if config.EnableConcurrencyManagement {
concurrencyMetrics := &concurrency.ConcurrencyMetrics{}
concurrencyHandler = concurrency.NewConcurrencyHandler(
config.MaxConcurrentRequests,
Expand Down Expand Up @@ -103,6 +103,7 @@ func BuildClient(config ClientConfig, populateDefaultValues bool, log logger.Log
zap.Duration("Token Refresh Buffer Period", config.TokenRefreshBufferPeriod),
zap.Duration("Total Retry Duration", config.TotalRetryDuration),
zap.Duration("Custom Timeout", config.CustomTimeout),
zap.Bool("Enable Concurrency Management", config.EnableConcurrencyManagement),
)

return client, nil
Expand Down

0 comments on commit f87994e

Please sign in to comment.