Deliver channel status events
This commit is contained in:
@@ -20,6 +20,7 @@ regex = "1.9.1"
|
||||
http = "0.2.9"
|
||||
thiserror = "=0.0.1"
|
||||
anyhow = "1.0"
|
||||
tokio = "1"
|
||||
|
||||
[patch.crates-io]
|
||||
thiserror = { git = "https://github.com/dominikwerder/thiserror.git" }
|
||||
|
||||
@@ -115,7 +115,7 @@ impl Error {
|
||||
where
|
||||
E: ToString,
|
||||
{
|
||||
Self::with_msg(e.to_string())
|
||||
Self::with_msg_no_trace(e.to_string())
|
||||
}
|
||||
|
||||
pub fn add_backtrace(self) -> Self {
|
||||
@@ -425,6 +425,12 @@ impl From<anyhow::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<tokio::task::JoinError> for Error {
|
||||
fn from(k: tokio::task::JoinError) -> Self {
|
||||
Self::with_msg(format!("{k}"))
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct PublicError {
|
||||
reason: Option<Reason>,
|
||||
|
||||
Reference in New Issue
Block a user