mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
fix: patch db init bug
This commit is contained in:
parent
84fc67b071
commit
da66be8e91
@ -152,16 +152,17 @@ class DatabaseRegistry:
|
||||
if pool_cls:
|
||||
base_args["poolclass"] = pool_cls
|
||||
|
||||
if not use_null_pool and not is_async:
|
||||
if not use_null_pool:
|
||||
base_args.update(
|
||||
{
|
||||
"pool_size": settings.pg_pool_size,
|
||||
"max_overflow": settings.pg_max_overflow,
|
||||
"pool_timeout": settings.pg_pool_timeout,
|
||||
"pool_recycle": settings.pg_pool_recycle,
|
||||
"pool_use_lifo": settings.pool_use_lifo,
|
||||
}
|
||||
)
|
||||
if not is_async:
|
||||
base_args["pool_use_lifo"] = settings.pool_use_lifo
|
||||
|
||||
return base_args
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user