fix(pulsar): use a binary duration as default `health_check_interval`
Fixes https://emqx.atlassian.net/browse/EMQX-9885 The frontend needs the default value to match the duration (binary) type to display correctly.
This commit is contained in:
parent
857c7bb91d
commit
5960cc530a
|
@ -140,7 +140,7 @@ fields(producer_resource_opts) ->
|
||||||
lists:filtermap(
|
lists:filtermap(
|
||||||
fun
|
fun
|
||||||
({health_check_interval = Field, MetaFn}) ->
|
({health_check_interval = Field, MetaFn}) ->
|
||||||
{true, {Field, override_default(MetaFn, 1_000)}};
|
{true, {Field, override_default(MetaFn, <<"1s">>)}};
|
||||||
({Field, _Meta}) ->
|
({Field, _Meta}) ->
|
||||||
lists:member(Field, SupportedOpts)
|
lists:member(Field, SupportedOpts)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue