From f4298c591710ba3fbb2848666c947359938179f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Ciarcin=CC=81ski?= Date: Thu, 3 Oct 2024 13:05:26 +0200 Subject: [PATCH] Cosmetics --- src/grpc/gateway.rs | 2 +- src/grpc/interceptor.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/grpc/gateway.rs b/src/grpc/gateway.rs index 985d51e81..64125f34a 100644 --- a/src/grpc/gateway.rs +++ b/src/grpc/gateway.rs @@ -447,7 +447,7 @@ impl GatewayUpdatesStream { pub fn new( task_handle: JoinHandle<()>, rx: Receiver>, - network_id: i64, + network_id: Id, gateway_hostname: String, gateway_state: Arc>, pool: PgPool, diff --git a/src/grpc/interceptor.rs b/src/grpc/interceptor.rs index 75d254459..190d0f09e 100644 --- a/src/grpc/interceptor.rs +++ b/src/grpc/interceptor.rs @@ -2,8 +2,8 @@ use tonic::{service::Interceptor, Status}; use crate::auth::{Claims, ClaimsType}; -/// Auth interceptor used by GRPC services. Verifies JWT token sent -/// in GRPC metadata under "authorization" key. +/// Auth interceptor used by gRPC services. Verifies JWT token sent +/// in gRPC metadata under "authorization" key. #[derive(Clone)] pub struct JwtInterceptor { claims_type: ClaimsType,