summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-27 16:45:17 -0600
committermo khan <mo@mokhan.ca>2025-06-27 16:45:17 -0600
commitcce3e0f170dfacb6b626a8777255c3183c5c5eb3 (patch)
tree788d88c028001d435b7f03685f4cf675a2fdacc0 /src/main.rs
parent7bda8947c80fc507b722f321977522bd50377c17 (diff)
refactor: extract authorization::Server type
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
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(())