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(),
|
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) ->
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue