Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions PowerSync/PowerSync.Common/MDSQLite/MDSQLiteAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,8 @@ public async Task WriteLock(Func<ILockContext, Task> fn, DBLockOptions? options
using (await writeMutex.LockAsync())
{
await fn(writeConnection);
writeConnection.FlushUpdates();
}

writeConnection.FlushUpdates();

}

public async Task<T> WriteLock<T>(Func<ILockContext, Task<T>> fn, DBLockOptions? options = null)
Expand All @@ -262,10 +260,9 @@ public async Task<T> WriteLock<T>(Func<ILockContext, Task<T>> fn, DBLockOptions?
using (await writeMutex.LockAsync())
{
result = await fn(writeConnection);
writeConnection.FlushUpdates();
}

writeConnection.FlushUpdates();

return result;
}

Expand Down
Loading