From 25a39146ed49b4ae22a5cead6642d055da7ded81 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sat, 16 Sep 2023 21:06:42 +0100 Subject: small fixes --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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![]); -- cgit