Skip to content

Commit

Permalink
revert unecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Feb 1, 2022
1 parent b48fabf commit 7eca3f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion xpresso/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(
self.container = container or BaseContainer(
scopes=("app", "connection", "operation")
)
register_framework_dependencies(self.container, self)
register_framework_dependencies(self.container)
self._setup_run = False

@asynccontextmanager
Expand Down
10 changes: 1 addition & 9 deletions xpresso/dependencies/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
T = typing.TypeVar("T")


def register_framework_dependencies(container: BaseContainer, app: typing.Any):
def register_framework_dependencies(container: BaseContainer):
container.register_by_type(
Dependant(Request, scope="connection", wire=False),
Request,
Expand Down Expand Up @@ -45,11 +45,3 @@ def register_framework_dependencies(container: BaseContainer, app: typing.Any):
),
BackgroundTasks,
)
container.register_by_type(
Dependant(
lambda: app,
scope="app",
wire=False,
),
type(app),
)

0 comments on commit 7eca3f4

Please sign in to comment.