diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-02 11:11:45 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-02 11:11:45 -0600 |
| commit | 105b4b2c4af3716e128af84142f2ff0a3442855d (patch) | |
| tree | bd0abc79ac0b4dff43d3d2cc9ca0cba7be48d05d | |
| parent | dbb213d385314e1f135d57e174ae8e41ff4b5329 (diff) | |
chore: add requst timeout of 30 seconds
| -rw-r--r-- | src/authorization/server.rs | 4 |
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 } } |
