Fix provider documentation

Make example more realistic.  This would break if you're running flask with multiple threads.
This commit is contained in:
RK 2021-03-29 16:14:38 +01:00 committed by GitHub
parent d04596be73
commit fe2719bc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ class Service:
class Container(containers.DeclarativeContainer):
service_provider = providers.Singleton(Service)
service_provider = providers.ThreadLocalSingleton(Service)
def index_view():