PacktPublishing / Building-Python-Microservices-with-FastAPI

Building Python Microservices with FastAPI, published by Packt
MIT License
296 stars 140 forks source link

Fix commented out line with Singleton #1

Closed meadsteve closed 2 years ago

meadsteve commented 2 years ago

Singleton expects a constructible type as an argument not an instance of something so this is probably what you wanted. It's the equivalent to line 16 but with construction deferred until when the instance is first needed.

sjctrags commented 2 years ago

Hi @meadsteve ! Yes, it was a typo thank you for that very much. But I replaced it with line 16 which is also working, you are correct.

meadsteve commented 2 years ago

👍