taskiq-python / taskiq-fastapi

FastAPI integration for taskiq
MIT License
27 stars 3 forks source link

Add `populate_dependency_context` to fix bug when using `InMemoryBroker` #2

Closed tschiolborg closed 1 year ago

tschiolborg commented 1 year ago

When using InMemoryBroker the dependency context is never set.

I have added populate_dependency_context so it can be set manually, as well as adding documentation to make users aware. The function may also be useful when setting up tests.

I also fixed some typos.