fix(sessds): Return the number of subscriptions for offline sessions

This commit is contained in:
ieQu1 2024-04-16 14:55:48 +02:00
parent e439a2e0f2
commit 38a2e8add9
No known key found for this signature in database
GPG Key ID: 488654DF3FED6FDE
1 changed files with 2 additions and 1 deletions

View File

@ -1768,7 +1768,8 @@ format_persistent_session_info(ClientId, PSInfo0) ->
heap_size => 0,
mqueue_len => 0,
proto_name => ProtoName,
proto_ver => ProtoVer
proto_ver => ProtoVer,
subscriptions_cnt => maps:size(maps:get(subscriptions, PSInfo0, #{}))
},
PSInfo = lists:foldl(
fun result_format_time_fun/2,