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(
|
{StreamLeaseEvents, Agent1} = emqx_persistent_session_ds_shared_subs_agent:renew_streams(
|
||||||
Agent0
|
Agent0
|
||||||
),
|
),
|
||||||
StreamLeaseEvents =/= [] andalso
|
?tp(info, shared_subs_new_stream_lease_events, #{stream_lease_events => StreamLeaseEvents}),
|
||||||
?SLOG(
|
|
||||||
info, #{
|
|
||||||
msg => shared_subs_new_stream_lease_events, stream_lease_events => StreamLeaseEvents
|
|
||||||
}
|
|
||||||
),
|
|
||||||
% StreamLeaseEvents =/= [] andalso ct:print("StreamLeaseEvents: ~p~n", [StreamLeaseEvents]),
|
|
||||||
S1 = lists:foldl(
|
S1 = lists:foldl(
|
||||||
fun
|
fun
|
||||||
(#{type := lease} = Event, S) -> accept_stream(Event, S);
|
(#{type := lease} = Event, S) -> accept_stream(Event, S);
|
||||||
|
|
Loading…
Reference in New Issue