mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
securejoin: remove unused error types related to ongoing processes
securejoin no longer allocates ongoing processes
This commit is contained in:
committed by
Floris Bruynooghe
parent
1f8b04bd42
commit
47db1349a9
@@ -139,9 +139,6 @@ async fn get_self_fingerprint(context: &Context) -> Option<Fingerprint> {
|
|||||||
|
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum JoinError {
|
pub enum JoinError {
|
||||||
#[error("An \"ongoing\" process is already running")]
|
|
||||||
OngoingRunning,
|
|
||||||
|
|
||||||
#[error("Failed to send handshake message: {0}")]
|
#[error("Failed to send handshake message: {0}")]
|
||||||
SendMessage(#[from] SendMsgError),
|
SendMessage(#[from] SendMsgError),
|
||||||
|
|
||||||
@@ -150,10 +147,6 @@ pub enum JoinError {
|
|||||||
#[error("Unknown contact (this is a bug): {0}")]
|
#[error("Unknown contact (this is a bug): {0}")]
|
||||||
UnknownContact(#[source] anyhow::Error),
|
UnknownContact(#[source] anyhow::Error),
|
||||||
|
|
||||||
// Note that this can only occur if we failed to create the chat correctly.
|
|
||||||
#[error("Ongoing sender dropped (this is a bug)")]
|
|
||||||
OngoingSenderDropped,
|
|
||||||
|
|
||||||
#[error("Other")]
|
#[error("Other")]
|
||||||
Other(#[from] anyhow::Error),
|
Other(#[from] anyhow::Error),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user