Replies: 1 comment 1 reply
-
Hello @OriBerlo, I have failed to understand your problem because of the language. Could you please try to elaborate more? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using faststream with the Fastapi plugin. I'm using your suggestion about setting a lifespan to the rabbit router, my issue starts when I try to fully utilize the existing fastapi capabilities to pass state in the requests object.
here are some code samples:
took the liberty to debug and compare the lifespan yield process between a regular HTTP fastapi and my app when incorporating a faststream router and seems that In the starlette/routing.py (return function of the lifespan) both acquire the state the same way.
another small question, the RabbitRouter starts serving rabbit mq connection the moment it initialized, is there any option of delaying its start after lifespan is finished similar to how Fastapi routers work?
I'd be glad if someone can assist me with my issue
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions