From bf92132e845ad7d4679bdce9a794d74f2b720b2c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 8 Apr 2021 16:52:41 +0200 Subject: [PATCH] Reduce timeout --- src/utils/webpage_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/webpage_utils.rs b/src/utils/webpage_utils.rs index 804044c..95704fa 100644 --- a/src/utils/webpage_utils.rs +++ b/src/utils/webpage_utils.rs @@ -15,7 +15,7 @@ pub fn get_post_web_link(url: &str) -> Res { options.max_redirections = 2; options.follow_location = true; 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)?;