We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e47871 commit 236d93eCopy full SHA for 236d93e
connection/connection.ts
@@ -295,7 +295,7 @@ export class Connection {
295
}
296
297
async #openTlsConnection(
298
- connection: Deno.Conn,
+ connection: Deno.TcpConn,
299
options: { hostname: string; caCerts: string[] },
300
) {
301
this.#conn = await Deno.startTls(connection, options);
@@ -354,7 +354,8 @@ export class Connection {
354
// https://www.postgresql.org/docs/14/protocol-flow.html#id-1.10.5.7.11
355
if (accepts_tls) {
356
try {
357
- await this.#openTlsConnection(this.#conn, {
+ // TODO: handle connection type without casting
358
+ await this.#openTlsConnection(this.#conn as Deno.TcpConn, {
359
hostname,
360
caCerts: caCertificates,
361
});
0 commit comments