Skip to content

Commit e154a65

Browse files
committed
Don't check for reentrancy from async Pool.read
One can't call an async function from a database access anywau
1 parent 41d4f23 commit e154a65

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

GRDB/Core/DatabasePool.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ extension DatabasePool: DatabaseReader {
354354
public func read<T: Sendable>(
355355
_ value: @escaping @Sendable (Database) throws -> T
356356
) async throws -> T {
357-
GRDBPrecondition(currentReader == nil, "Database methods are not reentrant.")
358357
guard let readerPool else {
359358
throw DatabaseError.connectionIsClosed()
360359
}

0 commit comments

Comments
 (0)