mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 11:05:32 -04:00
timeline: add instrumentation for the maybe_adjust_day_dividers function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user