mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
Resolve deadlocks (I'm an idiot)
This commit is contained in:
@@ -363,6 +363,8 @@ impl AddressbookStore for SqliteAddressbookStore {
|
|||||||
.await
|
.await
|
||||||
.map_err(crate::Error::from)?;
|
.map_err(crate::Error::from)?;
|
||||||
|
|
||||||
|
tx.commit().await.map_err(crate::Error::from)?;
|
||||||
|
|
||||||
// TODO: Watch for errors here?
|
// TODO: Watch for errors here?
|
||||||
let _ = self.sender.try_send(CollectionOperation {
|
let _ = self.sender.try_send(CollectionOperation {
|
||||||
r#type: CollectionOperationType::Object,
|
r#type: CollectionOperationType::Object,
|
||||||
@@ -374,7 +376,6 @@ impl AddressbookStore for SqliteAddressbookStore {
|
|||||||
sync_token: Some(synctoken),
|
sync_token: Some(synctoken),
|
||||||
});
|
});
|
||||||
|
|
||||||
tx.commit().await.map_err(crate::Error::from)?;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -308,6 +308,8 @@ impl CalendarStore for SqliteCalendarStore {
|
|||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
tx.commit().await.map_err(crate::Error::from)?;
|
||||||
|
|
||||||
// TODO: Watch for errors here?
|
// TODO: Watch for errors here?
|
||||||
let _ = self.sender.try_send(CollectionOperation {
|
let _ = self.sender.try_send(CollectionOperation {
|
||||||
r#type: CollectionOperationType::Object,
|
r#type: CollectionOperationType::Object,
|
||||||
@@ -315,8 +317,6 @@ impl CalendarStore for SqliteCalendarStore {
|
|||||||
topic: self.get_calendar(&principal, &cal_id).await?.push_topic,
|
topic: self.get_calendar(&principal, &cal_id).await?.push_topic,
|
||||||
sync_token: Some(synctoken),
|
sync_token: Some(synctoken),
|
||||||
});
|
});
|
||||||
|
|
||||||
tx.commit().await.map_err(crate::Error::from)?;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user