Skip to content

Commit ee5d5e1

Browse files
authored
Make TLS.disable a let instead of a var (#471)
This currently emits a Sendable warning since a global var isn't Sendable safe.
1 parent e345cbb commit ee5d5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PostgresNIO/Pool/PostgresClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public final class PostgresClient: Sendable, ServiceLifecycle.Service {
4747
}
4848

4949
/// Do not try to create a TLS connection to the server.
50-
public static var disable: Self = Self.init(.disable)
50+
public static let disable: Self = Self.init(.disable)
5151

5252
/// Try to create a TLS connection to the server. If the server supports TLS, create a TLS connection.
5353
/// If the server does not support TLS, create an insecure connection.

0 commit comments

Comments
 (0)