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

fix(emqx): update the type spec for listener

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

+ 1 - 1
apps/emqx/src/emqx_channel.erl

@@ -99,7 +99,7 @@
 
 -type(channel() :: #channel{}).
 
--type(opts() :: #{zone := atom(), listener := atom(), atom() => term()}).
+-type(opts() :: #{zone := atom(), listener := {Type::atom(), Name::atom()}, atom() => term()}).
 
 -type(conn_state() :: idle | connecting | connected | reauthenticating | disconnected).