mirror of
https://github.com/valitydev/dmt-client.git
synced 2024-11-06 09:25:16 +00:00
64591401b0
* deps: Fix build_utils dir * feat: Add use_upstream_latest force fetch option * fix: Add lower limits for max cache size opts * fix: Fix dialyzer warning * test: Add use_upstream_latest test * fix: Fix use_upstream_latest opt fetching * fix: Add option to sys.config * ref: Fix naming * ref: Fix dialyzer warning * ref: Fix do_get naming * ref: Move constants to defines * fix: Check cache limits on start, refactor cache * test: Fix unit tests * fix: Fix dialyzer issue * ref: Rename to use_cached_latest * fix: Fix option invertion * fix: Fix inversion once again * fix: Remove use_cached_latest as env opt * Revert "fix: Remove use_cached_latest as env opt" This reverts commit a5216280e1c0a7c5a1bf3420cb60cf6e51343677. * fix: Remove from opts * ref: Rename to use_cached_last_version * fix: Fix use_cached_last_version default * test: Check default case
30 lines
904 B
Plaintext
30 lines
904 B
Plaintext
[
|
|
{dmt_client, [
|
|
{transport_opts, #{
|
|
recv_timeout => 60000,
|
|
connect_timeout => 1000
|
|
}},
|
|
{woody_event_handlers, [
|
|
{scoper_woody_event_handler, #{
|
|
event_handler_opts => #{
|
|
formatter_opts => #{
|
|
max_length => 1000
|
|
}
|
|
}
|
|
}}
|
|
]},
|
|
{cache_update_interval, 5000}, % milliseconds
|
|
{cache_update_pull_limit, 10}, % event batch size
|
|
{use_cached_last_version, false},
|
|
{max_cache_size, #{
|
|
elements => 20,
|
|
memory => 52428800 % 50Mb
|
|
}},
|
|
{cache_server_call_timeout, 10000},
|
|
{service_urls, #{
|
|
'Repository' => <<"dominant:8022/v1/domain/repository">>,
|
|
'RepositoryClient' => <<"dominant:8022/v1/domain/repository_client">>
|
|
}}
|
|
]}
|
|
].
|