1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 15:29:21 +00:00

Reduce timeout

This commit is contained in:
Pierre HUBERT 2021-04-08 16:52:41 +02:00
parent 74adef5221
commit bf92132e84

View File

@ -15,7 +15,7 @@ pub fn get_post_web_link(url: &str) -> Res<PostWebLink> {
options.max_redirections = 2; options.max_redirections = 2;
options.follow_location = true; options.follow_location = true;
options.useragent = "OpenGraph Fetcher v1.0".to_string(); options.useragent = "OpenGraph Fetcher v1.0".to_string();
options.timeout = Duration::from_secs(5); options.timeout = Duration::from_secs(3);
let page = Webpage::from_url(url, options)?; let page = Webpage::from_url(url, options)?;