From 6ebd76d5da03fbe86b04efbc8c7183a7aefc003c Mon Sep 17 00:00:00 2001 From: Arjun Rao Date: Fri, 9 May 2025 04:22:46 +1000 Subject: [PATCH] bugfix: convert config val to int --- lightrag/kg/postgres_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/kg/postgres_impl.py b/lightrag/kg/postgres_impl.py index c71bc867..e2612dc6 100644 --- a/lightrag/kg/postgres_impl.py +++ b/lightrag/kg/postgres_impl.py @@ -54,7 +54,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