Changeset View
Changeset View
Standalone View
Standalone View
shared/grpc_clients/src/identity/unauthenticated.rs
use tonic::transport::Channel; | use tonic::transport::Channel; | ||||
use super::protos::client::identity_client_service_client::IdentityClientServiceClient; | use super::protos::client::identity_client_service_client::IdentityClientServiceClient; | ||||
use crate::error::Error; | use crate::error::Error; | ||||
pub async fn get_unauthenticated_client( | pub async fn get_unauthenticated_client( | ||||
url: &str, | url: &str, | ||||
) -> Result<IdentityClientServiceClient<Channel>, Error> { | ) -> Result<IdentityClientServiceClient<Channel>, Error> { | ||||
let channel = super::get_identity_service_channel(url).await?; | let channel = crate::get_grpc_service_channel(url).await?; | ||||
Ok(IdentityClientServiceClient::new(channel)) | Ok(IdentityClientServiceClient::new(channel)) | ||||
} | } |