From 47a6a13bdb313d3b73ecbac0220c6485d0b0ff62 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sat, 20 Aug 2022 01:56:13 -0400 Subject: [PATCH] Remove unused statement timeout with pgbouncer --- src/databases/Postgres.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/databases/Postgres.ts b/src/databases/Postgres.ts index be78b6e..0d2e097 100644 --- a/src/databases/Postgres.ts +++ b/src/databases/Postgres.ts @@ -39,8 +39,7 @@ export class Postgres implements IDatabase { async init(): Promise { this.pool = new Pool({ - ...this.config.postgres, - statement_timeout: 25000 + ...this.config.postgres }); this.pool.on("error", (err, client) => { Logger.error(err.stack); @@ -55,8 +54,7 @@ export class Postgres implements IDatabase { if (this.config.postgresReadOnly && this.config.postgresReadOnly.enabled) { this.poolRead = new Pool({ - ...this.config.postgresReadOnly, - statement_timeout: 1500 + ...this.config.postgresReadOnly }); this.poolRead.on("error", (err, client) => { Logger.error(err.stack);