Skip to content

Commit

Permalink
Make TLS.disable a let instead of a var (#471)
Browse files Browse the repository at this point in the history
This currently emits a Sendable warning since a global var isn't Sendable safe.
  • Loading branch information
FranzBusch authored May 1, 2024
1 parent e345cbb commit ee5d5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PostgresNIO/Pool/PostgresClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public final class PostgresClient: Sendable, ServiceLifecycle.Service {
}

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

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

0 comments on commit ee5d5e1

Please sign in to comment.