This commit is contained in:
Cat /dev/Nulo 2024-01-12 18:45:00 -03:00
parent 0207ea2e18
commit adc7cc459f

View file

@ -118,7 +118,11 @@ fn connect_db() -> Pool {
} }
fn build_client() -> reqwest::Client { 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)] #[derive(Default, Debug)]