Parcourir la source

fix(emqx): update the type spec for listener

Shawn il y a 4 ans
Parent
commit
4ea451e207
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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).