Timeout http requests after 3 seconds
This commit is contained in:
parent
01a9671f2f
commit
f0e773a37e
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ pub mod models;
|
||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
use eyre::Result;
|
use eyre::Result;
|
||||||
use reqwest::{header, Client};
|
use reqwest::{header, Client};
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
pub fn get_client(config: &Config) -> Result<Client> {
|
pub fn get_client(config: &Config) -> Result<Client> {
|
||||||
let mut headers = header::HeaderMap::new();
|
let mut headers = header::HeaderMap::new();
|
||||||
|
|
Loading…
Reference in a new issue