mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-30 12:04:25 -04:00
chore(sdk): Add a trace! log in `ThreadEventCacheStateLockWriteGuard::handle_sync.
This commit is contained in:
@@ -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) =
|
||||
|
||||
@@ -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?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user