Skip to content

Commit e26763a

Browse files
authored
Add missing Sendable annotations (#260)
Add missing Sendable annotations.
1 parent f6c1bff commit e26763a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PostgresKit/Deprecations/PostgresColumnType.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public struct PostgresColumnType: SQLExpression, Hashable {
203203
private let primitive: Primitive
204204
private init(_ primitive: Primitive) { self.primitive = primitive }
205205

206-
enum Primitive: CustomStringConvertible, Hashable {
206+
enum Primitive: CustomStringConvertible, Hashable, Sendable {
207207
case bigint /// signed eight-byte integer
208208
case bigserial /// autoincrementing eight-byte integer
209209
case bit(Int?) /// fixed-length bit string

Sources/PostgresKit/PostgresDatabase+SQL.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ extension _PostgresSQLDatabase: SQLDatabase, PostgresDatabase {
109109
self.database.withConnection(closure)
110110
}
111111

112-
func withSession<R>(_ closure: @escaping (any SQLDatabase) async throws -> R) async throws -> R {
112+
func withSession<R>(_ closure: @escaping @Sendable (any SQLDatabase) async throws -> R) async throws -> R {
113113
try await self.withConnection { c in
114114
c.eventLoop.makeFutureWithTask {
115115
try await closure(c.sql(

0 commit comments

Comments
 (0)