maharjun commited on
Commit
66081f1
·
1 Parent(s): 4962ca7

bugfix: convert config val to int

Browse files
Files changed (1) hide show
  1. lightrag/kg/postgres_impl.py +1 -1
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