mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 21:39:21 +00:00
Reduce timeout
This commit is contained in:
parent
74adef5221
commit
bf92132e84
@ -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)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user