From 954c3db6495085dbcf1eade54f7bc5f40587abe3 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 24 Jul 2022 15:41:09 -0400 Subject: [PATCH] Change postgres timeout values --- src/databases/Postgres.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/databases/Postgres.ts b/src/databases/Postgres.ts index 5b384e8..59c0acb 100644 --- a/src/databases/Postgres.ts +++ b/src/databases/Postgres.ts @@ -32,7 +32,7 @@ export class Postgres implements IDatabase { private poolRead: Pool; private lastPoolReadFail = 0; - private readTimeout = 400; + private readTimeout = 250; private maxTries = 3; @@ -57,7 +57,7 @@ export class Postgres implements IDatabase { if (this.config.postgresReadOnly && this.config.postgresReadOnly.enabled) { this.poolRead = new Pool({ ...this.config.postgresReadOnly, - statement_timeout: 300 + statement_timeout: 1000 }); this.poolRead.on("error", (err, client) => { Logger.error(err.stack);