Przeglądaj źródła

fix(emqx_exproto_conn): dialyzer warning

Zaiming Shi 5 lat temu
rodzic
commit
fb5ad0559f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apps/emqx_exproto/src/emqx_exproto_conn.erl

+ 1 - 1
apps/emqx_exproto/src/emqx_exproto_conn.erl

@@ -52,7 +52,7 @@
 
 
 -record(state, {
 -record(state, {
           %% TCP/SSL/UDP/DTLS Wrapped Socket
           %% TCP/SSL/UDP/DTLS Wrapped Socket
-          socket :: esockd:socket(),
+          socket :: {esockd_transport, esockd:socket()} | {udp, _, _},
           %% Peername of the connection
           %% Peername of the connection
           peername :: emqx_types:peername(),
           peername :: emqx_types:peername(),
           %% Sockname of the connection
           %% Sockname of the connection