Skip to content

Commit f87994e

Browse files
committed
chore: Enable concurrency management in httpclient client configuration
1 parent 44e5f6e commit f87994e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

httpclient/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func BuildClient(config ClientConfig, populateDefaultValues bool, log logger.Log
6969
}
7070

7171
var concurrencyHandler *concurrency.ConcurrencyHandler
72-
if config.ConcurrencyManagementEnabled {
72+
if config.EnableConcurrencyManagement {
7373
concurrencyMetrics := &concurrency.ConcurrencyMetrics{}
7474
concurrencyHandler = concurrency.NewConcurrencyHandler(
7575
config.MaxConcurrentRequests,
@@ -103,6 +103,7 @@ func BuildClient(config ClientConfig, populateDefaultValues bool, log logger.Log
103103
zap.Duration("Token Refresh Buffer Period", config.TokenRefreshBufferPeriod),
104104
zap.Duration("Total Retry Duration", config.TotalRetryDuration),
105105
zap.Duration("Custom Timeout", config.CustomTimeout),
106+
zap.Bool("Enable Concurrency Management", config.EnableConcurrencyManagement),
106107
)
107108

108109
return client, nil

0 commit comments

Comments
 (0)