Skip to content

Commit

Permalink
chore: [k213] chore: add congestion control to AWS (#13705)
Browse files Browse the repository at this point in the history
Co-authored-by: Ed Welch <edward.welch@grafana.com>
  • Loading branch information
grafanabot and slim-bean authored Jul 30, 2024
1 parent 9c6611a commit 42742b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/storage/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ func NewChunkClient(name string, cfg Config, schemaCfg config.SchemaConfig, cc c
if err != nil {
return nil, err
}
if cfg.CongestionControl.Enabled {
c = cc.Wrap(c)
}
return client.NewClientWithMaxParallel(c, nil, cfg.MaxParallelGetChunk, schemaCfg), nil

case types.StorageTypeGCS:
Expand Down

0 comments on commit 42742b6

Please sign in to comment.