Skip to content

Commit

Permalink
blocksim - increase http client transport settings (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris authored Apr 11, 2024
1 parent ce0265f commit 0274085
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/api/blocksim_ratelimiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ func NewBlockSimulationRateLimiter(blockSimURL string) *BlockSimulationRateLimit
blockSimURL: blockSimURL,
client: http.Client{ //nolint:exhaustruct
Timeout: simRequestTimeout,
Transport: &http.Transport{
MaxIdleConns: 100,
MaxIdleConnsPerHost: 100,
MaxConnsPerHost: 100,
IdleConnTimeout: 90 * time.Second,
},
},
}
}
Expand Down

0 comments on commit 0274085

Please sign in to comment.