mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Don't check for reentrancy from async Pool.read
One can't call an async function from a database access anywau
This commit is contained in:
1 parent
41d4f23a83
commit
e154a652dc
1 file changed
-1
@@ -354,7 +354,6 @@ extension DatabasePool: DatabaseReader {
|
||||
public func read<T: Sendable>(
|
||||
_ value: @escaping @Sendable (Database) throws -> T
|
||||
) async throws -> T {
|
||||
GRDBPrecondition(currentReader == nil, "Database methods are not reentrant.")
|
||||
guard let readerPool else {
|
||||
throw DatabaseError.connectionIsClosed()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user