chore(emqx_exproto): fix dialyzer warinings on default_conninfo

This commit is contained in:
z8674558 2021-02-24 16:01:44 +09:00 committed by Yudai Kiyofuji
parent fb8133b998
commit 02a755fbea
1 changed files with 4 additions and 5 deletions

View File

@ -565,15 +565,14 @@ enrich_clientinfo(InClientInfo = #{proto_name := ProtoName}, ClientInfo) ->
NClientInfo#{protocol => ProtoName}.
default_conninfo(ConnInfo) ->
ConnInfo#{proto_name => undefined,
proto_ver => undefined,
clean_start => true,
ConnInfo#{clean_start => true,
clientid => undefined,
username => undefined,
conn_props => [],
conn_mod => undefined,
conn_props => #{},
connected => true,
connected_at => erlang:system_time(millisecond),
keepalive => undefined,
keepalive => 0,
receive_maximum => 0,
expiry_interval => 0}.