chore(emqx_auth_mongo_sup): port changes from ee back to ce

This commit is contained in:
Zaiming (Stone) Shi 2022-03-23 15:50:36 +01:00
parent 56683328ec
commit b99627b866
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ init([]) ->
{ok, {{one_for_all, 10, 100}, [PoolSpec]}}. {ok, {{one_for_all, 10, 100}, [PoolSpec]}}.
may_parse_srv_and_txt_records(Opts) when is_list(Opts) -> may_parse_srv_and_txt_records(Opts) when is_list(Opts) ->
maps:to_list(may_parse_srv_and_txt_records(maps:from_list(Opts))); Default = #{srv_record => false},
maps:to_list(may_parse_srv_and_txt_records(maps:merge(Default, maps:from_list(Opts))));
may_parse_srv_and_txt_records(#{type := Type, may_parse_srv_and_txt_records(#{type := Type,
srv_record := false, srv_record := false,