chore: fix dialyzer warnings
This commit is contained in:
parent
8203b1f328
commit
6280c8c9f0
|
@ -144,7 +144,7 @@ start_listeners([L | Ls], GwName, Ctx, ModCfg, Acc) ->
|
|||
Ctx :: emqx_gateway_ctx:context(),
|
||||
Listener :: tuple(),
|
||||
ModCfg :: map())
|
||||
-> {ok, pid()}
|
||||
-> {ok, {ListenerId :: atom(), esockd:listen_on(), pid()}}
|
||||
| {error, term()}.
|
||||
start_listener(GwName, Ctx,
|
||||
{Type, LisName, ListenOn, SocketOpts, Cfg}, ModCfg) ->
|
||||
|
|
|
@ -62,7 +62,7 @@ on_gateway_load(_Gateway = #{ name := GwName,
|
|||
{ok, ListenerPids} ->
|
||||
{ok, ListenerPids, #{ctx => Ctx, registry => RegPid}};
|
||||
{error, {Reason, Listener}} ->
|
||||
emqx_lwm2m_xml_object_db:stop(),
|
||||
_ = emqx_lwm2m_xml_object_db:stop(),
|
||||
throw({badconf, #{ key => listeners
|
||||
, vallue => Listener
|
||||
, reason => Reason
|
||||
|
|
Loading…
Reference in New Issue