fix(emqx_psk_file): Dialyzer warnings

This commit is contained in:
ayodele.akingbule 2020-11-20 15:13:15 +01:00 committed by Zaiming Shi
parent 1a8baa9d8a
commit 7116a22fa5
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ load(Env) ->
ets:new(?TAB, [set, named_table, {keypos, #psk_entry.psk_id}]),
{ok, PskFile} = file:open(get_value(path, Env), [read, raw, binary, read_ahead]),
preload_psks(PskFile, bin(get_value(delimiter, Env))),
file:close(PskFile),
_ = file:close(PskFile),
emqx:hook('tls_handshake.psk_lookup', fun ?MODULE:on_psk_lookup/2, []).
%% Called when the plugin application stop