mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 09:52:54 +00:00
Update client libs for test_runner/pg_clients to their latest versions (#4092)
Also, use Workaround D for `swift/PostgresClientKitExample`, which supports neither SNI nor connections options
This commit is contained in:
committed by
GitHub
parent
88f39c11d4
commit
291b4f0d41
@@ -14,15 +14,11 @@ await Task {
|
||||
let sslContext = try! NIOSSLContext(configuration: .makeClientConfiguration())
|
||||
|
||||
let config = PostgresConnection.Configuration(
|
||||
connection: .init(
|
||||
host: env["NEON_HOST"] ?? "",
|
||||
port: 5432
|
||||
),
|
||||
authentication: .init(
|
||||
username: env["NEON_USER"] ?? "",
|
||||
database: env["NEON_DATABASE"] ?? "",
|
||||
password: env["NEON_PASSWORD"] ?? ""
|
||||
),
|
||||
host: env["NEON_HOST"] ?? "",
|
||||
port: 5432,
|
||||
username: env["NEON_USER"] ?? "",
|
||||
password: env["NEON_PASSWORD"] ?? "",
|
||||
database: env["NEON_DATABASE"] ?? "",
|
||||
tls: .require(sslContext)
|
||||
)
|
||||
|
||||
@@ -42,7 +38,7 @@ await Task {
|
||||
try await connection.close()
|
||||
|
||||
// Shutdown the EventLoopGroup, once all connections are closed.
|
||||
try eventLoopGroup.syncShutdownGracefully()
|
||||
try await eventLoopGroup.shutdownGracefully()
|
||||
} catch {
|
||||
print(error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user