mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 13:37:01 +03:00
Make default have no max requests
This commit is contained in:
@@ -105,7 +105,8 @@ export class Postgres implements IDatabase {
|
||||
|
||||
Logger.debug(`prepare (postgres): type: ${type}, query: ${query}, params: ${params}`);
|
||||
|
||||
if (this.activePostgresRequests > this.config.postgres.maxActiveRequests) {
|
||||
if (this.config.postgres.maxActiveRequests
|
||||
&& this.activePostgresRequests > this.config.postgres.maxActiveRequests) {
|
||||
throw new Error("Too many active postgres requests");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user