feat(queue): use tp to trace new lease events

This commit is contained in:
Ilya Averyanov 2024-06-20 21:12:15 +03:00
parent 1205e34650
commit 979fb58e50
1 changed files with 1 additions and 7 deletions

View File

@ -101,13 +101,7 @@ renew_streams(S0, #{agent := Agent0} = SharedSubS0) ->
{StreamLeaseEvents, Agent1} = emqx_persistent_session_ds_shared_subs_agent:renew_streams(
Agent0
),
StreamLeaseEvents =/= [] andalso
?SLOG(
info, #{
msg => shared_subs_new_stream_lease_events, stream_lease_events => StreamLeaseEvents
}
),
% StreamLeaseEvents =/= [] andalso ct:print("StreamLeaseEvents: ~p~n", [StreamLeaseEvents]),
?tp(info, shared_subs_new_stream_lease_events, #{stream_lease_events => StreamLeaseEvents}),
S1 = lists:foldl(
fun
(#{type := lease} = Event, S) -> accept_stream(Event, S);