File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ final class WALSnapshotTransaction: @unchecked Sendable {
1414 func commitAndRelease( ) {
1515 // WALSnapshotTransaction may be deinitialized in the dispatch
1616 // queue of its reader: allow reentrancy.
17- let isInsideTransaction = reader. reentrantSync ( allowingLongLivedTransaction: false )
18- { db in
17+ let isInsideTransaction = reader. reentrantSync ( allowingLongLivedTransaction: false ) { db in
1918 // Commit or rollback, but try hard to leave the read-only transaction
2019 // (commit may fail with a CancellationError).
2120 do {
@@ -62,9 +61,8 @@ final class WALSnapshotTransaction: @unchecked Sendable {
6261 /// is no longer used.
6362 init (
6463 onReader reader: SerializedDatabase ,
65- release: @escaping @Sendable ( _ isInsideTransaction: Bool ) -> Void
66- )
67- throws
64+ release: @escaping @Sendable ( _ isInsideTransaction: Bool ) -> Void )
65+ throws
6866 {
6967 assert ( reader. configuration. readonly)
7068 let databaseAccess = DatabaseAccess ( reader: reader, release: release)
You can’t perform that action at this time.
0 commit comments