Skip to content

Commit 2527bfb

Browse files
committed
chore: flatten procedures
Don't use EarlyReturn for synchronous operations
1 parent 2126748 commit 2527bfb

File tree

3 files changed

+201
-266
lines changed

3 files changed

+201
-266
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ async fn main() {
795795

796796
let service = ServiceBuilder::new()
797797
.layer_fn(CatchPanic)
798-
.layer(tower::timeout::TimeoutLayer::new(Duration::from_secs(15)))
798+
.layer(tower::timeout::TimeoutLayer::new(Duration::from_secs(25)))
799799
.service(service);
800800
Server::new(stdin, stdout, socket).serve(service).await;
801801
}

0 commit comments

Comments
 (0)