summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-18 17:53:00 -0600
committermo khan <mo@mokhan.ca>2025-06-18 17:53:00 -0600
commit594abe311e4dfbbcc477474561756bc5e5f0e539 (patch)
treef85634fa1f9bbf8b6189bec81a03fb874cd6fba2 /src
parent1e9a769e5e4af4684967473f0844f66c3958432c (diff)
chore: add make target to list rpc services
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 5af58aa0..05d57719 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -34,6 +34,7 @@ impl Authorization for PolicyServer {
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let addr = "[::1]:50051".parse()?;
+ let authorization_service = AuthorizationServer::new(PolicyServer::default());
let (health_reporter, health_service) = tonic_health::server::health_reporter();
health_reporter
.set_serving::<AuthorizationServer<PolicyServer>>()
@@ -44,8 +45,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.build_v1()
.unwrap();
Server::builder()
+ .add_service(authorization_service)
.add_service(health_service)
- .add_service(AuthorizationServer::new(PolicyServer::default()))
.add_service(reflection_service)
.serve(addr)
.await?;