Merge pull request #10430 from lafirest/fix/simplify_retainer_cfg

fix(retainer): mark `flow-control` as non-importance field
This commit is contained in:
zhongwencool 2023-04-18 16:19:48 +08:00 committed by GitHub
commit b8d5fd83ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -53,7 +53,8 @@ fields("retainer") ->
sc(
?R_REF(flow_control),
flow_control,
#{}
#{},
?IMPORTANCE_HIDDEN
)},
{max_payload_size,
sc(
@ -125,7 +126,9 @@ desc(_) ->
%% hoconsc:mk(Type, #{desc => ?DESC(DescId)}).
sc(Type, DescId, Default) ->
hoconsc:mk(Type, #{default => Default, desc => ?DESC(DescId)}).
sc(Type, DescId, Default, ?DEFAULT_IMPORTANCE).
sc(Type, DescId, Default, Importance) ->
hoconsc:mk(Type, #{default => Default, desc => ?DESC(DescId), importance => Importance}).
backend_config() ->
hoconsc:mk(hoconsc:ref(?MODULE, mnesia_config), #{desc => ?DESC(backend)}).

View File

@ -0,0 +1,2 @@
Simplify the configuration of the `retainer` feature.
- Mark `flow_control` as non-importance field.