diff --git a/cashu/core/db.py b/cashu/core/db.py index 75b8de5a..4188b0d2 100644 --- a/cashu/core/db.py +++ b/cashu/core/db.py @@ -133,9 +133,9 @@ def __init__(self, db_name: str, db_location: str): if not settings.db_connection_pool: kwargs["poolclass"] = NullPool elif self.type == POSTGRES: - kwargs["poolclass"] = QueuePool # type: ignore[assignment] - kwargs["pool_size"] = 50 # type: ignore[assignment] - kwargs["max_overflow"] = 100 # type: ignore[assignment] + #kwargs["poolclass"] = AsyncQueuePool # type: ignore[assignment] + kwargs["pool_size"] = 50 # type: ignore[assignment] + kwargs["max_overflow"] = 100 # type: ignore[assignment] self.engine = create_async_engine(database_uri, **kwargs) self.async_session = sessionmaker(