mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-13 02:24:20 +01:00
use idle count to get avl connections
This commit is contained in:
@@ -34,6 +34,6 @@ export class DittoPostgres {
|
||||
}
|
||||
|
||||
static get availableConnections(): number {
|
||||
return this.postgres.connections.closed;
|
||||
return this.postgres.connections.idle;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user