From 80a36c2754a77b3e00e128529173020f4da181b7 Mon Sep 17 00:00:00 2001 From: Mervs Date: Mon, 11 Nov 2024 17:21:34 +0100 Subject: [PATCH] fix: re-export twirp error types (#480) --- livekit-api/src/services/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/livekit-api/src/services/mod.rs b/livekit-api/src/services/mod.rs index d983c39b2..cc47aefad 100644 --- a/livekit-api/src/services/mod.rs +++ b/livekit-api/src/services/mod.rs @@ -19,6 +19,8 @@ use thiserror::Error; use crate::access_token::{AccessToken, AccessTokenError, SIPGrants, VideoGrants}; +pub use twirp_client::{TwirpError, TwirpErrorCode, TwirpResult}; + pub mod egress; pub mod ingress; pub mod room; @@ -35,7 +37,7 @@ pub enum ServiceError { #[error("invalid access token: {0}")] AccessToken(#[from] AccessTokenError), #[error("twirp error: {0}")] - Twirp(#[from] twirp_client::TwirpError), + Twirp(#[from] TwirpError), } pub type ServiceResult = Result;