aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-09-16 21:06:42 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-09-16 21:06:42 +0100
commit25a39146ed49b4ae22a5cead6642d055da7ded81 (patch)
tree51c8846b9feb89e0cc89c62eede8b623344b8f3d /src/main.rs
parent40cfa28d99f0942ee01f19d96dc8002183f68c75 (diff)
downloadblossom-25a39146ed49b4ae22a5cead6642d055da7ded81.tar.gz
blossom-25a39146ed49b4ae22a5cead6642d055da7ded81.tar.bz2
blossom-25a39146ed49b4ae22a5cead6642d055da7ded81.zip
small fixes
Diffstat (limited to '')
-rw-r--r--src/main.rs6
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![]);