fix(dialyzer): some dialyzer complains
This commit is contained in:
parent
0cc01c2bee
commit
533f4cf63e
|
@ -12,7 +12,7 @@
|
||||||
[ {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
|
[ {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
|
||||||
, {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
|
, {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
|
||||||
, {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.8.2"}}}
|
, {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.8.2"}}}
|
||||||
, {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.1"}}}
|
, {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.2"}}}
|
||||||
, {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.10.2"}}}
|
, {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.10.2"}}}
|
||||||
, {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.1"}}}
|
, {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.1"}}}
|
||||||
, {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v4.0.1"}}} %% todo delete when plugins use hocon
|
, {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v4.0.1"}}} %% todo delete when plugins use hocon
|
||||||
|
|
|
@ -85,7 +85,7 @@ put_listener_conf(Zone, Listener, KeyPath, Conf) ->
|
||||||
?MODULE:put([zones, Zone, listeners, Listener | KeyPath], Conf).
|
?MODULE:put([zones, Zone, listeners, Listener | KeyPath], Conf).
|
||||||
|
|
||||||
-spec find_listener_conf(atom(), atom(), emqx_map_lib:config_key_path()) ->
|
-spec find_listener_conf(atom(), atom(), emqx_map_lib:config_key_path()) ->
|
||||||
{ok, term()} | {not_foud, emqx_map_lib:config_key_path(), term()}.
|
{ok, term()} | {not_found, emqx_map_lib:config_key_path(), term()}.
|
||||||
find_listener_conf(Zone, Listener, KeyPath) ->
|
find_listener_conf(Zone, Listener, KeyPath) ->
|
||||||
%% the configs in listener is prior to the ones in the zone
|
%% the configs in listener is prior to the ones in the zone
|
||||||
case find([zones, Zone, listeners, Listener | KeyPath]) of
|
case find([zones, Zone, listeners, Listener | KeyPath]) of
|
||||||
|
|
|
@ -209,7 +209,8 @@
|
||||||
-type(infos() :: #{atom() => term()}).
|
-type(infos() :: #{atom() => term()}).
|
||||||
-type(stats() :: [{atom(), term()}]).
|
-type(stats() :: [{atom(), term()}]).
|
||||||
|
|
||||||
-type(oom_policy() :: #{message_queue_len => non_neg_integer(),
|
-type(oom_policy() :: #{max_message_queue_len => non_neg_integer(),
|
||||||
max_heap_size => non_neg_integer()
|
max_heap_size => non_neg_integer(),
|
||||||
|
enable => boolean()
|
||||||
}).
|
}).
|
||||||
|
|
||||||
|
|
|
@ -583,7 +583,8 @@ handle_call(discard, Channel) ->
|
||||||
% shutdown_and_reply(takeovered, AllPendings, Channel);
|
% shutdown_and_reply(takeovered, AllPendings, Channel);
|
||||||
|
|
||||||
handle_call(list_acl_cache, Channel) ->
|
handle_call(list_acl_cache, Channel) ->
|
||||||
{reply, emqx_acl_cache:list_acl_cache(), Channel};
|
%% This won't work
|
||||||
|
{reply, emqx_acl_cache:list_acl_cache(default, mqtt_tcp), Channel};
|
||||||
|
|
||||||
%% XXX: No Quota Now
|
%% XXX: No Quota Now
|
||||||
% handle_call({quota, Policy}, Channel) ->
|
% handle_call({quota, Policy}, Channel) ->
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
, {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
|
, {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
|
||||||
, {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
|
, {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
|
||||||
, {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.8.2"}}}
|
, {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.8.2"}}}
|
||||||
, {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.1"}}}
|
, {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.2"}}}
|
||||||
, {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.10.2"}}}
|
, {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.10.2"}}}
|
||||||
, {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.1"}}}
|
, {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.1"}}}
|
||||||
, {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v4.0.1"}}} % TODO: delete when all apps moved to hocon
|
, {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v4.0.1"}}} % TODO: delete when all apps moved to hocon
|
||||||
|
|
Loading…
Reference in New Issue