From d29cc3b3374115cf131dc70aa2e29c137a2d1b60 Mon Sep 17 00:00:00 2001 From: euri10 Date: Thu, 8 Feb 2024 09:57:10 +0100 Subject: [PATCH] Fix blacksheep --- asgi_bench/__main__.py | 2 +- frameworks/blacksheep_app.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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")