Skip to content

Commit d52ec93

Browse files
committed
Don’t require writeData to be Sendable
1 parent 1602d85 commit d52ec93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PostgresNIO/Connection/PostgresConnection+CopyFrom.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ extension PostgresConnection {
186186
isolation: isolated (any Actor)? = #isolation,
187187
file: String = #fileID,
188188
line: Int = #line,
189-
writeData: @escaping @Sendable (PostgresCopyFromWriter) async throws -> Void
189+
writeData: (PostgresCopyFromWriter) async throws -> Void
190190
) async throws {
191191
var logger = logger
192192
logger[postgresMetadataKey: .connectionID] = "\(self.id)"

0 commit comments

Comments
 (0)