Skip to content

Commit

Permalink
refactor: remove unnecessary functions
Browse files Browse the repository at this point in the history
  • Loading branch information
andiserg committed Feb 4, 2024
1 parent 5882dab commit 08ba216
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/dishka/integrations/litestar.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ async def middleware(scope: Scope, receive: Receive, send: Send) -> None:
return middleware


def setup_dishka(app: Litestar, providers: Sequence[Provider]) -> Litestar:
app.state.dishka_container_wrapper = make_async_container(*providers)
return app


class DishkaApp(BaseDishkaApp):
def _init_request_middleware(
self, app, container_wrapper: AsyncContextWrapper,
Expand Down

0 comments on commit 08ba216

Please sign in to comment.