From 601dce76ef2f06c0ba3c483e7563ac72d8a5b8e7 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 19 Mar 2024 18:31:50 +0100 Subject: [PATCH] timeline: add instrumentation for the `maybe_adjust_day_dividers` function --- crates/matrix-sdk-ui/src/timeline/event_handler.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/matrix-sdk-ui/src/timeline/event_handler.rs b/crates/matrix-sdk-ui/src/timeline/event_handler.rs index ef68ace9c..4bf723fce 100644 --- a/crates/matrix-sdk-ui/src/timeline/event_handler.rs +++ b/crates/matrix-sdk-ui/src/timeline/event_handler.rs @@ -1055,6 +1055,7 @@ pub(super) struct DayDividerAdjuster<'a, 'o> { impl<'a, 'o> DayDividerAdjuster<'a, 'o> { /// Ensures that date separators are properly inserted/removed when needs /// be. + #[instrument(skip(self))] pub fn maybe_adjust_day_dividers(&mut self) { // We're going to record operations like inserting, replacing and removing day // dividers. Since we may remove or insert new items, recorded offsets