pub async fn get_datastore_client(
service_registry_channel: Channel,
) -> Result<DbHandlerClient<Channel>, Status>
Expand description
Get a datastore client using the provided service registry channel. Will return a tonic::NotFound error if the datastore is not registered in the service registry. Will return a tonic::Internal error if the service registry returns an unexpected error. Will return a tonic::Unavailable error if the datastore cannot be reached.