Skip to content

Commit

Permalink
fix: re-export twirp error types (livekit#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mervs authored Nov 11, 2024
1 parent 0699735 commit 80a36c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion livekit-api/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<T> = Result<T, ServiceError>;
Expand Down

0 comments on commit 80a36c2

Please sign in to comment.