Have long running analytic transactions return actual transactions.
Also add `AnalyticsService.getLongRunningTransaction` and change `AnalyticsService.stopLongRunningTransaction` to `removeLongRunningTransaction`.
This commit is contained in:
parent
441b2e7fb5
commit
3d590c1c46
5 changed files with 40 additions and 11 deletions
|
|
@ -73,7 +73,7 @@ internal class RoomListFactory(
|
|||
initialFilterKind = RoomListEntriesDynamicFilterKind.All(ROOM_LIST_RUST_FILTERS),
|
||||
).onEach { update ->
|
||||
if (!firstRoomsTransaction.isFinished()) {
|
||||
analyticsService.stopLongRunningTransaction(AnalyticsLongRunningTransaction.FirstRoomsDisplayed)
|
||||
analyticsService.removeLongRunningTransaction(AnalyticsLongRunningTransaction.FirstRoomsDisplayed)?.finish()
|
||||
firstRoomsTransaction.finish()
|
||||
}
|
||||
processor.postUpdate(update)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue