From d062f6bbb670b686faddfc52d3edc79ce348e8ae Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 1 Jul 2024 08:44:01 +0100 Subject: [PATCH] Try lazy pool initialization --- src/db/adapters/DittoPostgres.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/adapters/DittoPostgres.ts b/src/db/adapters/DittoPostgres.ts index c06a262f..6df78b97 100644 --- a/src/db/adapters/DittoPostgres.ts +++ b/src/db/adapters/DittoPostgres.ts @@ -12,7 +12,7 @@ export class DittoPostgres { static getPool(): Pool { if (!this.pool) { - this.pool = new Pool(Conf.databaseUrl, Conf.pg.poolSize); + this.pool = new Pool(Conf.databaseUrl, Conf.pg.poolSize, true); } return this.pool; }