Skip to content

Commit

Permalink
Update amount of goroutines to 128 (#2082)
Browse files Browse the repository at this point in the history
  • Loading branch information
perkinsjr authored Sep 12, 2024
1 parent 3289392 commit 9345e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/agent/services/ratelimit/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ func New(cfg Config) (*service, error) {
s.mitigateBuffer = make(chan mitigateWindowRequest, 10000)
s.syncBuffer = make(chan syncWithOriginRequest, 10000)
// Process the individual requests to the origin and update local state
// We're using 32 goroutines to parallelise the network requests'
// We're using 128 goroutines to parallelise the network requests'
s.logger.Info().Msg("starting background jobs")
for range 32 {
for range 128 {
go func() {
for {
select {
Expand Down

0 comments on commit 9345e10

Please sign in to comment.