Ready to implement sync thread logic
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use crate::matrix_connection::sync_thread::MatrixSyncTaskID;
|
||||
use crate::users::{APIToken, UserEmail};
|
||||
|
||||
pub type BroadcastSender = tokio::sync::broadcast::Sender<BroadcastMessage>;
|
||||
@@ -9,4 +10,6 @@ pub enum BroadcastMessage {
|
||||
UserDisconnectedFromMatrix(UserEmail),
|
||||
/// API token has been deleted
|
||||
APITokenDeleted(APIToken),
|
||||
/// Request a Matrix sync thread to be interrupted
|
||||
StopSyncThread(MatrixSyncTaskID),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user