Deliver channel status events

This commit is contained in:
Dominik Werder
2023-09-27 14:07:48 +02:00
parent 76c61f564c
commit 921c3c1498
22 changed files with 431 additions and 307 deletions
+7 -1
View File
@@ -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>,