summaryrefslogtreecommitdiff
path: root/src/authorization
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-02 11:11:45 -0600
committermo khan <mo@mokhan.ca>2025-07-02 11:11:45 -0600
commit105b4b2c4af3716e128af84142f2ff0a3442855d (patch)
treebd0abc79ac0b4dff43d3d2cc9ca0cba7be48d05d /src/authorization
parentdbb213d385314e1f135d57e174ae8e41ff4b5329 (diff)
chore: add requst timeout of 30 seconds
Diffstat (limited to 'src/authorization')
-rw-r--r--src/authorization/server.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/authorization/server.rs b/src/authorization/server.rs
index 57712848..6ae9361f 100644
--- a/src/authorization/server.rs
+++ b/src/authorization/server.rs
@@ -24,7 +24,9 @@ impl Server {
where
F: FnOnce(tonic::transport::Server) -> tonic::transport::server::Router,
{
- let router = f(tonic::transport::Server::builder());
+ let builder =
+ tonic::transport::Server::builder().timeout(std::time::Duration::from_secs(30));
+ let router = f(builder);
Server { router }
}