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 ```