fix(emqx): fix dialyzer warnings

This commit is contained in:
ayodele.akingbule 2021-01-04 13:43:19 +01:00 committed by Zaiming Shi
parent 990be9c198
commit b9bb88d9eb
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ hook(HookPoint, Action, InitArgs) when is_list(InitArgs) ->
hook(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) ->
emqx_hooks:del(HookPoint, Action).