Skip to content

Commit

Permalink
client: add default IdleConnTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
micvbang committed Jul 8, 2024
1 parent 0e5a782 commit 5338a92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func NewRecordClient(baseURL string, apiKey string) (*RecordClient, error) {
client: &http.Client{
Transport: &http.Transport{
MaxIdleConnsPerHost: 10,
IdleConnTimeout: time.Second,
},
},
baseURL: bURL,
Expand Down

0 comments on commit 5338a92

Please sign in to comment.