chore(sdk): Add a trace! log in `ThreadEventCacheStateLockWriteGuard::handle_sync.

This commit is contained in:
Ivan Enderlin
2026-03-19 10:06:04 +01:00
parent 40a92a9994
commit 9cbc65b732
2 changed files with 3 additions and 2 deletions

View File

@@ -556,7 +556,6 @@ impl RoomEventCacheInner {
return Ok(());
}
// Add all the events to the backend.
trace!("adding new events");
let (stored_prev_batch_token, timeline_event_diffs) =

View File

@@ -23,7 +23,7 @@ use matrix_sdk_base::event_cache::{Event, store::EventCacheStoreLock};
use ruma::{EventId, OwnedEventId, OwnedRoomId, OwnedUserId};
pub(super) use state::LockedThreadEventCacheState;
use tokio::sync::broadcast::{Receiver, Sender};
use tracing::error;
use tracing::{error, trace};
use self::pagination::ThreadPagination;
use super::{
@@ -121,6 +121,8 @@ impl ThreadEventCache {
return Ok(());
}
trace!("adding new events");
let mut state = self.inner.state.write().await?;
let timeline_event_diffs = state.handle_sync(events).await?;