diff --git a/src/dishka/integrations/litestar.py b/src/dishka/integrations/litestar.py index abe93880..b8f86eb7 100644 --- a/src/dishka/integrations/litestar.py +++ b/src/dishka/integrations/litestar.py @@ -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,