feat: delete_msgs: Use transaction() instead of call_write()

Explicit transaction does the only commit (and fsync()).
This commit is contained in:
iequidoo
2024-12-23 13:59:57 -03:00
committed by iequidoo
parent 3d5e442145
commit a910808b4e
2 changed files with 4 additions and 7 deletions

View File

@@ -707,9 +707,6 @@ pub(crate) async fn save(
))?;
if timestamp > newest_timestamp {
// okay to drop, as we use cached prepared statements
drop(stmt_test);
drop(stmt_insert);
newest_timestamp = timestamp;
newest_location_id = Some(u32::try_from(conn.last_insert_rowid())?);
}