Skip to content
This repository was archived by the owner on Apr 12, 2025. It is now read-only.

Commit c570924

Browse files
authored
fix: up timeout
1 parent 0bbdf4d commit c570924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/routes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ pub fn route() -> Router {
3131
let proxy = Proxy::with_client(
3232
config.host.clone().unwrap(),
3333
reqwest::Client::builder()
34-
.timeout(Duration::from_secs(30))
34+
.timeout(Duration::from_secs(60))
3535
.build()
3636
.unwrap(),
3737
);
3838

3939
let mut router = Router::with_hoop(Cors::permissive().into_handler())
4040
.hoop(Logger::new())
4141
.hoop(should_skip)
42-
.hoop(Timeout::new(Duration::from_secs(30)))
42+
.hoop(Timeout::new(Duration::from_secs(60)))
4343
.hoop(Compression::new().enable_gzip(CompressionLevel::Fastest))
4444
//.hoop(max_concurrency(300))
4545
// .hoop(affix::inject(Arc::new(proxy.clone())));

0 commit comments

Comments
 (0)