Increase Mojang's API response timeout

This commit is contained in:
ErickSkrauch 2021-03-03 01:23:34 +01:00
parent 1e3307dcbe
commit 26042037b6
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **BREAKING**: `/cloaks/{username}` and `/textures/{username}` endpoints will no longer return a cape if there are no
textures for the requested username.
- All endpoints are now returns `500` status code when an error occurred during request processing.
- Increased the response timeout for Mojang's API from 3 to 10 seconds.
## [4.5.0] - 2020-05-01
### Added

View File

@ -12,7 +12,7 @@ import (
)
var HttpClient = &http.Client{
Timeout: 3 * time.Second,
Timeout: 10 * time.Second,
Transport: &http.Transport{
MaxIdleConnsPerHost: 1024,
},