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:
Gwendal Roué committed 2025-07-19 14:25:50 +02:00
1 parent 41d4f23a83
commit e154a652dc
1 file changed
-1
-1
View File
@@ -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()
}