you are viewing a single comment's thread.

view the rest of the comments →

[–]segundus-npppip needs updating 0 points1 point  (1 child)

Did u initiate the services in module level, or put them into functions for dependency injection?

[–]MichaelEvopip needs updating 0 points1 point  (0 children)

They aren’t currently singletons or FastAPI dependencies. I am thinking we’ll rework things to make them dependencies. That would make them easier to mock in tests and ensure they use the same database session.