Skip to content

Commit

Permalink
fix: up timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb1t committed Oct 26, 2023
1 parent c570924 commit 54cc314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ pub fn route() -> Router {
let proxy = Proxy::with_client(
config.host.clone().unwrap(),
reqwest::Client::builder()
.timeout(Duration::from_secs(60))
.timeout(Duration::from_secs(60 * 100))
.build()
.unwrap(),
);

let mut router = Router::with_hoop(Cors::permissive().into_handler())
.hoop(Logger::new())
.hoop(should_skip)
.hoop(Timeout::new(Duration::from_secs(60)))
.hoop(Timeout::new(Duration::from_secs(60 * 100)))
.hoop(Compression::new().enable_gzip(CompressionLevel::Fastest))
//.hoop(max_concurrency(300))
// .hoop(affix::inject(Arc::new(proxy.clone())));
Expand Down

0 comments on commit 54cc314

Please sign in to comment.