daemon: start working on events. notes:
Probably need to make the locking mechanism more granular. Only lock the database during db writes, see if we can do multiple readers and a single writer. Otherwise, the daemon will not be able to service requests while an event is being handled, which is not good.
This commit is contained in:
@@ -64,7 +64,7 @@ impl DaemonCli {
|
||||
|
||||
pub async fn sync_conversations(&mut self) -> Result<()> {
|
||||
let success = KordophoneRepository::sync_all_conversations(&self.proxy())?;
|
||||
println!("Synced conversations: {}", success);
|
||||
println!("Initiated sync");
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user