Browse Source

fix(emqx): update the type spec for listener

Shawn 4 years atrás
parent
commit
4ea451e207
1 changed files with 1 additions and 1 deletions
  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(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).
 -type(conn_state() :: idle | connecting | connected | reauthenticating | disconnected).