diff --git a/asgi_bench/__main__.py b/asgi_bench/__main__.py index 98dcca0..7501457 100644 --- a/asgi_bench/__main__.py +++ b/asgi_bench/__main__.py @@ -1,4 +1,4 @@ -from .cli import cli +from asgi_bench.cli import cli if __name__ == "__main__": cli() diff --git a/frameworks/blacksheep_app.py b/frameworks/blacksheep_app.py index 130a0d7..03cbeec 100644 --- a/frameworks/blacksheep_app.py +++ b/frameworks/blacksheep_app.py @@ -347,9 +347,9 @@ def __init__(self, two: SyncDependencyTwo) -> None: self.value = [*two.value, "sync_dependency_three"] -app.services.add_exact_scoped(SyncDependencyOne) -app.services.add_exact_scoped(SyncDependencyTwo) -app.services.add_exact_scoped(SyncDependencyThree) +app.services._add_exact_scoped(SyncDependencyOne) +app.services._add_exact_scoped(SyncDependencyTwo) +app.services._add_exact_scoped(SyncDependencyThree) @app.router.get("/sync-dependencies-sync")