Skip to content

Commit 270332d

Browse files
authored
fastapi app initialization updated (#1875)
1 parent 5a6556a commit 270332d

File tree

1 file changed

+1
-1
lines changed
  • examples/fastapi_integration

1 file changed

+1
-1
lines changed

examples/fastapi_integration/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from faststream.rabbit.fastapi import Logger, RabbitRouter
44

55
router = RabbitRouter("amqp://guest:guest@localhost:5672/")
6-
app = FastAPI(lifespan=router.lifespan_context)
6+
app = FastAPI()
77

88
publisher = router.publisher("response-q")
99

0 commit comments

Comments
 (0)