Skip to content

Commit

Permalink
Extends API client timeout. Refs #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel17 committed Mar 8, 2023
1 parent ab413de commit f13d472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/clients/football.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,6 @@ func (r *realAPIClient) GetTeamsByLeagueCode(code string) ([]Team, error) {
func init() {
rateLimiter = rate.NewLimiter(rate.Every(time.Minute), configs.GetFootballMaxRequestsPerMinute())
client = &http.Client{
Timeout: time.Second,
Timeout: 5 * time.Second,
}
}

0 comments on commit f13d472

Please sign in to comment.