Skip to content

Commit

Permalink
add casting to prevent docs fail
Browse files Browse the repository at this point in the history
  • Loading branch information
bombillazo committed Sep 23, 2024
1 parent 3e47871 commit 236d93e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions connection/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export class Connection {
}

async #openTlsConnection(
connection: Deno.Conn,
connection: Deno.TcpConn,
options: { hostname: string; caCerts: string[] },
) {
this.#conn = await Deno.startTls(connection, options);
Expand Down Expand Up @@ -354,7 +354,8 @@ export class Connection {
// https://www.postgresql.org/docs/14/protocol-flow.html#id-1.10.5.7.11
if (accepts_tls) {
try {
await this.#openTlsConnection(this.#conn, {
// TODO: handle connection type without casting
await this.#openTlsConnection(this.#conn as Deno.TcpConn, {
hostname,
caCerts: caCertificates,
});
Expand Down

1 comment on commit 236d93e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No typecheck tests failure

This error was most likely caused by incorrect type stripping from the SWC crate

Please report the following failure to https://github.com/denoland/deno with a reproduction of the current commit

Failure log

Please sign in to comment.