mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 13:07:02 +03:00
Remove unused statement timeout with pgbouncer
This commit is contained in:
@@ -39,8 +39,7 @@ export class Postgres implements IDatabase {
|
|||||||
|
|
||||||
async init(): Promise<void> {
|
async init(): Promise<void> {
|
||||||
this.pool = new Pool({
|
this.pool = new Pool({
|
||||||
...this.config.postgres,
|
...this.config.postgres
|
||||||
statement_timeout: 25000
|
|
||||||
});
|
});
|
||||||
this.pool.on("error", (err, client) => {
|
this.pool.on("error", (err, client) => {
|
||||||
Logger.error(err.stack);
|
Logger.error(err.stack);
|
||||||
@@ -55,8 +54,7 @@ export class Postgres implements IDatabase {
|
|||||||
|
|
||||||
if (this.config.postgresReadOnly && this.config.postgresReadOnly.enabled) {
|
if (this.config.postgresReadOnly && this.config.postgresReadOnly.enabled) {
|
||||||
this.poolRead = new Pool({
|
this.poolRead = new Pool({
|
||||||
...this.config.postgresReadOnly,
|
...this.config.postgresReadOnly
|
||||||
statement_timeout: 1500
|
|
||||||
});
|
});
|
||||||
this.poolRead.on("error", (err, client) => {
|
this.poolRead.on("error", (err, client) => {
|
||||||
Logger.error(err.stack);
|
Logger.error(err.stack);
|
||||||
|
|||||||
Reference in New Issue
Block a user