Просмотр исходного кода

fix(dialyzer): invalid type specs

Shawn 4 лет назад
Родитель
Сommit
1e14a6086e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/emqx_plugin_libs/src/emqx_plugin_libs_ssl.erl

+ 2 - 2
apps/emqx_plugin_libs/src/emqx_plugin_libs_ssl.erl

@@ -32,8 +32,8 @@
 %% <<"verify">> => boolean()
 %% <<"tls_versions">> => binary()
 %% <<"ciphers">> => binary()
--type opts_key() :: binary().
--type opts_input() :: #{opts_key() => file_input() | boolean() | binary()}.
+-type opts_key() :: binary() | atom().
+-type opts_input() :: #{opts_key() => term()}.
 
 -type opt_key() :: keyfile | certfile | cacertfile | verify | versions | ciphers.
 -type opt_value() :: term().