Skip to content

Commit aa9273c

Browse files
authored
Use computed property to PostgresConnection.Configuration.TLS.disable for concurrency safe (#376)
1 parent 061a083 commit aa9273c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PostgresNIO/Connection/PostgresConnection+Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension PostgresConnection {
1313
// MARK: Initializers
1414

1515
/// Do not try to create a TLS connection to the server.
16-
public static var disable: Self = .init(base: .disable)
16+
public static var disable: Self { .init(base: .disable) }
1717

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

0 commit comments

Comments
 (0)