chore: fix dialyzer warnings

This commit is contained in:
JianBo He 2021-12-29 14:02:45 +08:00
parent 8203b1f328
commit 6280c8c9f0
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ start_listeners([L | Ls], GwName, Ctx, ModCfg, Acc) ->
Ctx :: emqx_gateway_ctx:context(), Ctx :: emqx_gateway_ctx:context(),
Listener :: tuple(), Listener :: tuple(),
ModCfg :: map()) ModCfg :: map())
-> {ok, pid()} -> {ok, {ListenerId :: atom(), esockd:listen_on(), pid()}}
| {error, term()}. | {error, term()}.
start_listener(GwName, Ctx, start_listener(GwName, Ctx,
{Type, LisName, ListenOn, SocketOpts, Cfg}, ModCfg) -> {Type, LisName, ListenOn, SocketOpts, Cfg}, ModCfg) ->

View File

@ -62,7 +62,7 @@ on_gateway_load(_Gateway = #{ name := GwName,
{ok, ListenerPids} -> {ok, ListenerPids} ->
{ok, ListenerPids, #{ctx => Ctx, registry => RegPid}}; {ok, ListenerPids, #{ctx => Ctx, registry => RegPid}};
{error, {Reason, Listener}} -> {error, {Reason, Listener}} ->
emqx_lwm2m_xml_object_db:stop(), _ = emqx_lwm2m_xml_object_db:stop(),
throw({badconf, #{ key => listeners throw({badconf, #{ key => listeners
, vallue => Listener , vallue => Listener
, reason => Reason , reason => Reason