add async with all functions
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ def create_app(settings: Settings | None = None) -> FastAPI:
|
||||
@asynccontextmanager
|
||||
async def lifespan(_: FastAPI) -> AsyncIterator[None]:
|
||||
yield
|
||||
engine.dispose()
|
||||
await engine.dispose()
|
||||
|
||||
application = FastAPI(title="Messenger", version="1.3.0", lifespan=lifespan)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user