Merge pull request #8481 from lafirest/fix/retainer_flow_control

fix(retainer): set default value of flow control
This commit is contained in:
lafirest 2022-07-14 15:20:23 +08:00 committed by GitHub
commit 0f5f3985a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
{application, emqx_retainer, [
{description, "EMQX Retainer"},
% strict semver, bump manually!
{vsn, "5.0.1"},
{vsn, "5.0.2"},
{modules, []},
{registered, [emqx_retainer_sup]},
{applications, [kernel, stdlib, emqx]},

View File

@ -36,7 +36,8 @@ fields("retainer") ->
{flow_control,
sc(
?R_REF(flow_control),
flow_control
flow_control,
#{}
)},
{max_payload_size,
sc(
@ -104,8 +105,8 @@ desc(_) ->
%% Internal functions
%%--------------------------------------------------------------------
sc(Type, DescId) ->
hoconsc:mk(Type, #{desc => ?DESC(DescId)}).
%%sc(Type, DescId) ->
%% hoconsc:mk(Type, #{desc => ?DESC(DescId)}).
sc(Type, DescId, Default) ->
hoconsc:mk(Type, #{default => Default, desc => ?DESC(DescId)}).