use shared objects like loops db access etc
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 8s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 8s
This commit is contained in:
8
backend/src/shared_objects.py
Normal file
8
backend/src/shared_objects.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from typing import Optional
|
||||
import asyncio
|
||||
|
||||
# These are filled at FastAPI startup
|
||||
# DB instance
|
||||
db = None
|
||||
web_loop: Optional[asyncio.AbstractEventLoop] = None
|
||||
broadcaster = None
|
||||
Reference in New Issue
Block a user