Added config option for icon download timeout

This commit is contained in:
BlackDex
2019-02-12 21:56:28 +01:00
parent ff2fbd322e
commit 3b27dbb0aa
3 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@ lazy_static! {
// Reuse the client between requests
static ref CLIENT: Client = Client::builder()
.gzip(true)
.timeout(Duration::from_secs(5))
.timeout(Duration::from_secs(CONFIG.icon_download_timeout()))
.default_headers(_header_map())
.build()
.unwrap();