fix(emqx): fix dialyzer warnings
This commit is contained in:
parent
990be9c198
commit
b9bb88d9eb
|
@ -184,7 +184,7 @@ hook(HookPoint, Action, InitArgs) when is_list(InitArgs) ->
|
||||||
hook(HookPoint, Action, Filter, Priority) ->
|
hook(HookPoint, Action, Filter, Priority) ->
|
||||||
emqx_hooks:add(HookPoint, Action, Filter, Priority).
|
emqx_hooks:add(HookPoint, Action, Filter, Priority).
|
||||||
|
|
||||||
-spec(unhook(emqx_hooks:hookpoint(), fun() | {atom(), atom()}) -> ok).
|
-spec(unhook(emqx_hooks:hookpoint(), fun() | {atom(), atom()} | {atom(), atom(), [any()]}) -> ok).
|
||||||
unhook(HookPoint, Action) ->
|
unhook(HookPoint, Action) ->
|
||||||
emqx_hooks:del(HookPoint, Action).
|
emqx_hooks:del(HookPoint, Action).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue