mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Try lazy pool initialization
This commit is contained in:
parent
96fe171d65
commit
d062f6bbb6
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ export class DittoPostgres {
|
||||||
|
|
||||||
static getPool(): Pool {
|
static getPool(): Pool {
|
||||||
if (!this.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;
|
return this.pool;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue