Skip to content

Commit 0274085

Browse files
authored
blocksim - increase http client transport settings (#597)
1 parent ce0265f commit 0274085

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/api/blocksim_ratelimiter.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ func NewBlockSimulationRateLimiter(blockSimURL string) *BlockSimulationRateLimit
4848
blockSimURL: blockSimURL,
4949
client: http.Client{ //nolint:exhaustruct
5050
Timeout: simRequestTimeout,
51+
Transport: &http.Transport{
52+
MaxIdleConns: 100,
53+
MaxIdleConnsPerHost: 100,
54+
MaxConnsPerHost: 100,
55+
IdleConnTimeout: 90 * time.Second,
56+
},
5157
},
5258
}
5359
}

0 commit comments

Comments
 (0)