Skip to content

Commit

Permalink
chore(sdk): Log SlidingSync list updates
Browse files Browse the repository at this point in the history
chore(sdk): Log SlidingSync list updates
  • Loading branch information
Hywan authored Jun 29, 2023
2 parents 62315d7 + 111071c commit 61b7335
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions crates/matrix-sdk/src/sliding_sync/list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub use room_list_entry::RoomListEntry;
use ruma::{api::client::sync::sync_events::v4, assign, OwnedRoomId, TransactionId};
use serde::{Deserialize, Serialize};
use tokio::sync::broadcast::Sender;
use tracing::{info, instrument, warn};
use tracing::{instrument, warn};

use self::sticky::SlidingSyncListStickyParameters;
use super::{
Expand Down Expand Up @@ -519,8 +519,6 @@ fn apply_sync_operations(
room_list: &mut ObservableVector<RoomListEntry>,
rooms_that_have_received_an_update: &mut HashSet<OwnedRoomId>,
) -> Result<(), Error> {
info!(?operations);

for operation in operations {
match &operation.op {
// Specification says:
Expand Down
5 changes: 5 additions & 0 deletions crates/matrix-sdk/src/sliding_sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ impl SlidingSync {

// Update the lists.
let updated_lists = {
debug!(
lists = ?sliding_sync_response.lists,
"Update lists"
);

let mut updated_lists = Vec::with_capacity(sliding_sync_response.lists.len());
let mut lists = self.inner.lists.write().await;

Expand Down

0 comments on commit 61b7335

Please sign in to comment.