mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-01 04:34:24 +01:00
Try lazy pool initialization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user