Skip to content

Commit 47a6a13

Browse files
committed
Remove unused statement timeout with pgbouncer
1 parent 525a23a commit 47a6a13

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/databases/Postgres.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ export class Postgres implements IDatabase {
3939

4040
async init(): Promise<void> {
4141
this.pool = new Pool({
42-
...this.config.postgres,
43-
statement_timeout: 25000
42+
...this.config.postgres
4443
});
4544
this.pool.on("error", (err, client) => {
4645
Logger.error(err.stack);
@@ -55,8 +54,7 @@ export class Postgres implements IDatabase {
5554

5655
if (this.config.postgresReadOnly && this.config.postgresReadOnly.enabled) {
5756
this.poolRead = new Pool({
58-
...this.config.postgresReadOnly,
59-
statement_timeout: 1500
57+
...this.config.postgresReadOnly
6058
});
6159
this.poolRead.on("error", (err, client) => {
6260
Logger.error(err.stack);

0 commit comments

Comments
 (0)