Merge branch 'allow_max_connection_config'

This commit is contained in:
Arjun Rao 2025-05-09 14:13:48 +10:00
commit 990b7351e9

View file

@ -55,7 +55,7 @@ class PostgreSQLDB:
self.password = config.get("password", None)
self.database = config.get("database", "postgres")
self.workspace = config.get("workspace", "default")
self.max = config.get("max_connections", 12)
self.max = int(config.get("max_connections", 12))
self.increment = 1
self.pool: Pool | None = None