Skip to content

Commit 2092d78

Browse files
committed
Fix two typos
1 parent 279a36b commit 2092d78

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

common/src/commonMain/kotlin/com/powersync/db/Queries.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public interface Queries {
147147
*/
148148
@Throws(PowerSyncException::class, CancellationException::class)
149149
public suspend fun <R> writeLock(callback: ThrowableLockCallback<R>): R =
150-
useConnection(readOnly = true) { connection ->
150+
useConnection(readOnly = false) { connection ->
151151
callback.execute(connection.asContext())
152152
}
153153

integrations/room/src/commonMain/kotlin/com/powersync/integrations/room/RoomConnectionPool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private class RoomTransactionLease(
161161
transactor.usePrepared(sql) {
162162
// TODO: This is suspending in Room3, where we can avoid the runBlocking here.
163163
stmt ->
164-
runBlocking { block(stmt) }
164+
runBlocking(context) { block(stmt) }
165165
}
166166

167167
override fun isInTransactionSync(): Boolean =

0 commit comments

Comments
 (0)