Skip to content

Commit 521b6b4

Browse files
authored
PostgresQuery and PostgresBindings should be Sendable (#328)
1 parent 7cfd33c commit 521b6b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/PostgresNIO/New/PostgresQuery.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,9 @@ public struct PostgresBindings: Hashable {
177177
self.metadata.append(.init(dataType: postgresData.type, format: .binary))
178178
}
179179
}
180+
181+
#if swift(>=5.6)
182+
extension PostgresQuery: Sendable {}
183+
extension PostgresBindings: Sendable {}
184+
extension PostgresBindings.Metadata: Sendable {}
185+
#endif

0 commit comments

Comments
 (0)