Skip to content

Commit

Permalink
remove unnecessary references
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed Sep 30, 2024
1 parent 3f24307 commit e61d837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobile_packet_verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ pub trait MobileConfigResolverExt {
#[async_trait::async_trait]
impl MobileConfigResolverExt for MobileConfigClients {
async fn is_gateway_known(&self, public_key: &PublicKeyBinary) -> bool {
match self.gateway_client.resolve_gateway_info(&public_key).await {
match self.gateway_client.resolve_gateway_info(public_key).await {
Ok(res) => res.is_some(),
Err(_err) => false,
}
}

async fn is_routing_key_known(&self, public_key: &PublicKeyBinary) -> bool {
self.auth_client
.verify_authorized_key(&public_key, NetworkKeyRole::MobileRouter)
.verify_authorized_key(public_key, NetworkKeyRole::MobileRouter)
.await
.unwrap_or_default()
}
Expand Down

0 comments on commit e61d837

Please sign in to comment.