mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +05:30
Increase Mojang's API response timeout
This commit is contained in:
parent
1e3307dcbe
commit
26042037b6
@ -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
|
- **BREAKING**: `/cloaks/{username}` and `/textures/{username}` endpoints will no longer return a cape if there are no
|
||||||
textures for the requested username.
|
textures for the requested username.
|
||||||
- All endpoints are now returns `500` status code when an error occurred during request processing.
|
- 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
|
## [4.5.0] - 2020-05-01
|
||||||
### Added
|
### Added
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var HttpClient = &http.Client{
|
var HttpClient = &http.Client{
|
||||||
Timeout: 3 * time.Second,
|
Timeout: 10 * time.Second,
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
MaxIdleConnsPerHost: 1024,
|
MaxIdleConnsPerHost: 1024,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user