chore(rule-engine): more safe generate even_msg content
This commit is contained in:
parent
3645cb244b
commit
edb1460b56
|
@ -191,12 +191,12 @@ eventmsg_connected(_ClientInfo = #{
|
|||
clean_start := CleanStart,
|
||||
proto_name := ProtoName,
|
||||
proto_ver := ProtoVer,
|
||||
keepalive := Keepalive,
|
||||
connected_at := ConnectedAt,
|
||||
conn_props := ConnProps,
|
||||
receive_maximum := RcvMax,
|
||||
expiry_interval := ExpiryInterval
|
||||
connected_at := ConnectedAt
|
||||
}) ->
|
||||
Keepalive = maps:get(keepalive, ConnInfo, 0),
|
||||
ConnProps = maps:get(conn_props, ConnInfo, #{}),
|
||||
RcvMax = maps:get(receive_maximum, ConnInfo, 0),
|
||||
ExpiryInterval = maps:get(expiry_interval, ConnInfo, 0),
|
||||
with_basic_columns('client.connected',
|
||||
#{clientid => ClientId,
|
||||
username => Username,
|
||||
|
|
Loading…
Reference in New Issue