From e73502ffad6491e1ebd823fd55c261517a40752c Mon Sep 17 00:00:00 2001 From: grillazz Date: Fri, 12 Jun 2026 14:05:15 +0200 Subject: [PATCH] bump deps --- app/main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/main.py b/app/main.py index fad2df6..5a3f50a 100644 --- a/app/main.py +++ b/app/main.py @@ -30,14 +30,14 @@ async def lifespan(app: FastAPI): app.redis = await get_redis() postgres_dsn = global_settings.postgres_url.unicode_string() try: - # app.postgres_pool = await asyncpg.create_pool( - # dsn=postgres_dsn, - # min_size=5, - # max_size=20, - # ) - # await app.logger.ainfo( - # "Postgres pool created", idle_size=app.postgres_pool.get_idle_size() - # ) + app.postgres_pool = await asyncpg.create_pool( + dsn=postgres_dsn, + min_size=5, + max_size=20, + ) + await app.logger.ainfo( + "Postgres pool created", idle_size=app.postgres_pool.get_idle_size() + ) yield except Exception as e: await app.logger.aerror("Error during app startup", error=repr(e))