feat(queue): use tp to trace new lease events
This commit is contained in:
parent
1205e34650
commit
979fb58e50
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue