We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45f0fa6 commit 885aadfCopy full SHA for 885aadf
services/notifications/src/simcore_service_notifications/api/rest/_dependencies.py
@@ -5,20 +5,11 @@
5
from fastapi import Depends, FastAPI, Request
6
from servicelib.rabbitmq._client_rpc import RabbitMQRPCClient
7
8
-from ...core.settings import ApplicationSettings
9
-
10
11
def get_application(request: Request) -> FastAPI:
12
return cast(FastAPI, request.app)
13
14
15
-def get_settings(
16
- app: Annotated[FastAPI, Depends(get_application)],
17
-) -> ApplicationSettings:
18
- assert isinstance(app.state.settings, ApplicationSettings) # nosec
19
- return app.state.settings
20
21
22
def get_rabbitmq_client(
23
app: Annotated[FastAPI, Depends(get_application)],
24
) -> RabbitMQRPCClient:
0 commit comments