Fix the issue that emqx_session:attrs/1 returns wrong value
This commit is contained in:
parent
8234b616e5
commit
61d64cbb83
|
@ -214,7 +214,7 @@ attrs(#state{clean_start = CleanStart,
|
||||||
{binding, binding(ConnPid)},
|
{binding, binding(ConnPid)},
|
||||||
{client_id, ClientId},
|
{client_id, ClientId},
|
||||||
{username, Username},
|
{username, Username},
|
||||||
{expiry_interval, ExpiryInterval div 1000},
|
{expiry_interval, ExpiryInterval},
|
||||||
{created_at, CreatedAt}].
|
{created_at, CreatedAt}].
|
||||||
|
|
||||||
-spec(stats(spid() | #state{}) -> list({atom(), non_neg_integer()})).
|
-spec(stats(spid() | #state{}) -> list({atom(), non_neg_integer()})).
|
||||||
|
|
Loading…
Reference in New Issue