Skip to content

Commit 6ce96ab

Browse files
authored
Add Sendable conformance to PostgresEncodingContext (#450)
1 parent ea0800d commit 6ce96ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/PostgresNIO/New/PostgresCodable.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,10 @@ extension PostgresDynamicTypeEncodable {
166166

167167
/// A context that is passed to Swift objects that are encoded into the Postgres wire format. Used
168168
/// to pass further information to the encoding method.
169-
public struct PostgresEncodingContext<JSONEncoder: PostgresJSONEncoder> {
169+
public struct PostgresEncodingContext<JSONEncoder: PostgresJSONEncoder>: Sendable {
170170
/// A ``PostgresJSONEncoder`` used to encode the object to json.
171171
public var jsonEncoder: JSONEncoder
172172

173-
174173
/// Creates a ``PostgresEncodingContext`` with the given ``PostgresJSONEncoder``. In case you want
175174
/// to use the a ``PostgresEncodingContext`` with an unconfigured Foundation `JSONEncoder`
176175
/// you can use the ``default`` context instead.

0 commit comments

Comments
 (0)