Skip to content

Commit

Permalink
chore: format deno files
Browse files Browse the repository at this point in the history
  • Loading branch information
bombillazo committed Feb 6, 2024
1 parent 5a32545 commit d550fd3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class Pool {
constructor(
connection_params: ClientOptions | ConnectionString | undefined,
size: number,
lazy: boolean = false
lazy: boolean = false,
) {
this.#connection_params = createParams(connection_params);
this.#lazy = lazy;
Expand Down Expand Up @@ -182,8 +182,9 @@ export class Pool {
async #initialize() {
const initialized = this.#lazy ? 0 : this.#size;
const clients = Array.from({ length: this.#size }, async (_e, index) => {
const client: PoolClient = new PoolClient(this.#connection_params, () =>
this.#available_connections!.push(client)
const client: PoolClient = new PoolClient(
this.#connection_params,
() => this.#available_connections!.push(client),
);

if (index < initialized) {
Expand All @@ -196,7 +197,7 @@ export class Pool {
this.#available_connections = new DeferredAccessStack(
await Promise.all(clients),
(client) => client.connect(),
(client) => client.connected
(client) => client.connected,
);

this.#ended = false;
Expand Down

1 comment on commit d550fd3

@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.