Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Oct 27, 2024
1 parent c71d37b commit ac6bdf2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit ac6bdf2

Please sign in to comment.