Update example

This commit is contained in:
Roman Mogylatov 2020-08-25 10:27:11 -04:00
parent 0f952b5915
commit 6c7c9eaa47
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ framework:
api_client = providers.Singleton(
ApiClient,
api_key=config.api_key,
timeout=config.timeout,
timeout=config.timeout.as_int(),
)
service = providers.Factory(

View File

@ -21,7 +21,7 @@ class Container(containers.DeclarativeContainer):
api_client = providers.Singleton(
ApiClient,
api_key=config.api_key,
timeout=config.timeout,
timeout=config.timeout.as_int(),
)
service = providers.Factory(