Skip to content

Commit

Permalink
Remove redundant Sendable conformance (#263)
Browse files Browse the repository at this point in the history
We no longer need to retroactively conform PostgresEncodingContext to Sendable; we already require a version of PostgresNIO newer than the one that includes it natively.
  • Loading branch information
gwynne committed Apr 28, 2024
1 parent 3d34228 commit 9535dc5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Sources/PostgresKit/PostgresDatabase+SQL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ import PostgresNIO
import Logging
import SQLKit

// https://github.com/vapor/postgres-nio/pull/450
#if compiler(>=5.10) && $RetroactiveAttribute
extension PostgresEncodingContext: @retroactive @unchecked Sendable {}
#else
extension PostgresEncodingContext: @unchecked Sendable {}
#endif

extension PostgresDatabase {
@inlinable
public func sql(queryLogLevel: Logger.Level? = .debug) -> some SQLDatabase {
Expand Down

0 comments on commit 9535dc5

Please sign in to comment.