bugfix: convert config val to int
Browse files
lightrag/kg/postgres_impl.py
CHANGED
@@ -54,7 +54,7 @@ class PostgreSQLDB:
|
|
54 |
self.password = config.get("password", None)
|
55 |
self.database = config.get("database", "postgres")
|
56 |
self.workspace = config.get("workspace", "default")
|
57 |
-
self.max = config.get("max_connections", 12)
|
58 |
self.increment = 1
|
59 |
self.pool: Pool | None = None
|
60 |
|
|
|
54 |
self.password = config.get("password", None)
|
55 |
self.database = config.get("database", "postgres")
|
56 |
self.workspace = config.get("workspace", "default")
|
57 |
+
self.max = int(config.get("max_connections", 12))
|
58 |
self.increment = 1
|
59 |
self.pool: Pool | None = None
|
60 |
|