mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
use idle count to get avl connections
This commit is contained in:
parent
53343ba349
commit
3aa8266bbe
1 changed files with 1 additions and 1 deletions
|
|
@ -34,6 +34,6 @@ export class DittoPostgres {
|
||||||
}
|
}
|
||||||
|
|
||||||
static get availableConnections(): number {
|
static get availableConnections(): number {
|
||||||
return this.postgres.connections.closed;
|
return this.postgres.connections.idle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue