From f130ae89e175f969fe9cdecfd1b2bfa3a02492db Mon Sep 17 00:00:00 2001
From: Maks <am.xlexeev@gmail.com>
Date: Sun, 27 Oct 2024 15:11:42 +0300
Subject: [PATCH] fastapi app initialization updated

---
 examples/fastapi_integration/app.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/fastapi_integration/app.py b/examples/fastapi_integration/app.py
index e9f7ccc579..b53f4becfa 100644
--- a/examples/fastapi_integration/app.py
+++ b/examples/fastapi_integration/app.py
@@ -3,7 +3,7 @@
 from faststream.rabbit.fastapi import Logger, RabbitRouter
 
 router = RabbitRouter("amqp://guest:guest@localhost:5672/")
-app = FastAPI(lifespan=router.lifespan_context)
+app = FastAPI()
 
 publisher = router.publisher("response-q")