Skip to content

Commit

Permalink
fix: use client timeout of 500 seconds (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo authored Jul 20, 2022
1 parent 037ece9 commit d43e343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/async_telegram_api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct AsyncApi {
#[builder(setter(into))]
pub api_url: String,
#[builder(
default_code = "reqwest::ClientBuilder::new().connect_timeout(Duration::from_secs(10)).timeout(Duration::from_secs(10)).build().unwrap()"
default_code = "reqwest::ClientBuilder::new().connect_timeout(Duration::from_secs(500)).timeout(Duration::from_secs(500)).build().unwrap()"
)]
pub client: reqwest::Client,
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/telegram_api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use ureq::Response;
pub struct Api {
#[builder(setter(into))]
pub api_url: String,
#[builder(default_code = "ureq::builder().timeout(Duration::from_secs(10)).build()")]
#[builder(default_code = "ureq::builder().timeout(Duration::from_secs(500)).build()")]
pub request_agent: ureq::Agent,
}

Expand Down

0 comments on commit d43e343

Please sign in to comment.