mirror of
https://github.com/Fabio286/antares.git
synced 2025-03-29 17:50:03 +01:00
fix(PostgreSQL): idle timeout disabled
This commit is contained in:
parent
c826888b0d
commit
a082514f88
@ -144,7 +144,11 @@ export class PostgreSQLClient extends AntaresCore {
|
||||
|
||||
async getConnectionPool () {
|
||||
const dbConfig = await this.getDbConfig();
|
||||
const pool = new pg.Pool({ ...dbConfig, max: this._poolSize });
|
||||
const pool = new pg.Pool({
|
||||
...dbConfig,
|
||||
max: this._poolSize,
|
||||
idleTimeoutMillis: 0
|
||||
});
|
||||
const connection = pool;
|
||||
|
||||
if (this._params.readonly) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user