From 4a066c532f86c6ba7d90762afb9ed8ba70c9e55b Mon Sep 17 00:00:00 2001 From: Qrius Date: Thu, 26 Sep 2024 00:11:06 +0200 Subject: Timeout wodl --- src/macro_processor/deadlinks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macro_processor/deadlinks.rs b/src/macro_processor/deadlinks.rs index f8bf352..add7916 100644 --- a/src/macro_processor/deadlinks.rs +++ b/src/macro_processor/deadlinks.rs @@ -31,7 +31,7 @@ pub fn smp_builtin_wodl( let link_info = match link_cache.get(&args[0]) { Some(working_link) => working_link.clone(), None => { - let response = match minreq::get(&args[0]).send() { + let response = match minreq::get(&args[0]).with_timeout(2).send() { Ok(s) => s, Err(e) => { smp.warnings -- cgit v1.2.3