This commit is contained in:
Gwendal Roué committed 2025-09-10 06:51:14 +02:00
1 parent 3f69614405
commit 8dfbbb50f6
1 file changed
+1
+1
View File
@@ -361,6 +361,7 @@ extension DatabasePool: DatabaseReader {
return try await readerPool.get { reader in
try await reader.execute { db in
defer {
#warning("TODO: when Task is cancelled, this commit fails, and we're still in a transaction")
// Ignore commit error, but make sure we leave the transaction
try? db.commit()
assert(!db.isInsideTransaction)