diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-27 16:45:17 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-27 16:45:17 -0600 |
| commit | cce3e0f170dfacb6b626a8777255c3183c5c5eb3 (patch) | |
| tree | 788d88c028001d435b7f03685f4cf675a2fdacc0 /src/main.rs | |
| parent | 7bda8947c80fc507b722f321977522bd50377c17 (diff) | |
refactor: extract authorization::Server type
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 13d313d7..8638e14b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,3 @@ -use authzd::create_server; - #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { tracing_subscriber::fmt().json().init(); @@ -8,9 +6,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { .unwrap_or_else(|_| "[::1]:50051".to_string()) .parse()?; - let server = create_server()?; - log::info!("Listening on... {addr}"); + let server = authzd::authorization::Server::new()?; server.serve(addr).await?; Ok(()) |
