From ac6bdf2bdc803674f4ee2abebba35de928325680 Mon Sep 17 00:00:00 2001 From: Aldo Mateli Date: Sun, 27 Oct 2024 19:24:05 +0000 Subject: [PATCH] Readme update --- readme.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index a467f50..937d4e4 100644 --- a/readme.md +++ b/readme.md @@ -78,10 +78,8 @@ Use factories (sync and async) if service requires special initialization or cle ```python @service -async def db_connection_factory( - db_dsn: Annotated[str, Inject(param="db_dsn")] -) -> AsyncIterator[DBConnection]: - async with DBConnection(db_dsn) as conn: +async def make_db(db_dsn: Annotated[str, Inject(param="db_dsn")]) -> AsyncIterator[Connection]: + async with DB(db_dsn) as conn: yield conn ```