From 9535dc5029f7f2e48a9f2fff18e85a6b64e15307 Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Sun, 28 Apr 2024 13:18:52 -0500 Subject: [PATCH] Remove redundant Sendable conformance (#263) 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. --- Sources/PostgresKit/PostgresDatabase+SQL.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Sources/PostgresKit/PostgresDatabase+SQL.swift b/Sources/PostgresKit/PostgresDatabase+SQL.swift index dac3c40..d4d84bd 100644 --- a/Sources/PostgresKit/PostgresDatabase+SQL.swift +++ b/Sources/PostgresKit/PostgresDatabase+SQL.swift @@ -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 {