diff --git a/scraper-rs/src/main.rs b/scraper-rs/src/main.rs index 456bb35..7cf98ee 100644 --- a/scraper-rs/src/main.rs +++ b/scraper-rs/src/main.rs @@ -118,7 +118,11 @@ fn connect_db() -> Pool { } fn build_client() -> reqwest::Client { - reqwest::ClientBuilder::default().build().unwrap() + reqwest::ClientBuilder::default() + .timeout(Duration::from_secs(60 * 5)) + .connect_timeout(Duration::from_secs(60)) + .build() + .unwrap() } #[derive(Default, Debug)]