diff options
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e538f84..ed768b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ mod skweets; use std::borrow::Cow; use std::collections::HashSet; +use std::time::Duration; use atom_syndication::Feed; use rocket::fs::{relative, FileServer}; @@ -136,7 +137,10 @@ async fn main() -> std::result::Result<(), rocket::Error> { .manage(Clients { listenbrainz: listenbrainz::raw::Client::new(), skinnyverse: mastodon_async::Mastodon::from(skinny_data), - reqwest: reqwest::Client::new(), + reqwest: reqwest::Client::builder() + .connect_timeout(Duration::from_secs(1)) + .build() + .unwrap(), }) .attach(Template::custom(|engines| { engines.tera.autoescape_on(vec![]); |