Procházet zdrojové kódy

chore(authn): fix dialyzer

zhouzb před 4 roky
rodič
revize
f0ba6af660

+ 2 - 2
apps/emqx/src/emqx_config.erl

@@ -101,9 +101,9 @@
 }.
 
 %% raw_config() is the config that is NOT parsed and tranlated by hocon schema
--type raw_config() :: #{binary() => term()} | undefined.
+-type raw_config() :: #{binary() => term()} | list() | undefined.
 %% config() is the config that is parsed and tranlated by hocon schema
--type config() :: #{atom() => term()} | undefined.
+-type config() :: #{atom() => term()} | list() | undefined.
 -type app_envs() :: [proplists:property()].
 
 %% @doc For the given path, get root value enclosed in a single-key map.

+ 3 - 3
apps/emqx_authn/src/emqx_authn.erl

@@ -314,9 +314,9 @@ list_users(ChainID, AuthenticatorID) ->
 %%--------------------------------------------------------------------
 
 init(_Opts) ->
-    ets:new(?CHAIN_TAB, [ named_table, set, public
-                        , {keypos, #chain.id}
-                        , {read_concurrency, true}]),
+    _ = ets:new(?CHAIN_TAB, [ named_table, set, public
+                            , {keypos, #chain.id}
+                            , {read_concurrency, true}]),
     {ok, #{}}.
 
 handle_call({create_chain, ID}, _From, State) ->