Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
moubctez committed Oct 3, 2024
1 parent 060a44f commit f4298c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/grpc/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ impl GatewayUpdatesStream {
pub fn new(
task_handle: JoinHandle<()>,
rx: Receiver<Result<Update, Status>>,
network_id: i64,
network_id: Id,
gateway_hostname: String,
gateway_state: Arc<Mutex<GatewayMap>>,
pool: PgPool,
Expand Down
4 changes: 2 additions & 2 deletions src/grpc/interceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f4298c5

Please sign in to comment.