mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-10 17:03:20 -04:00
chore(sliding sync): log the room id in the limited flag computation
This commit is contained in:
@@ -945,7 +945,7 @@ impl StickyData for SlidingSyncStickyParameters {
|
||||
/// TODO remove this workaround as soon as support of the `limited` flag is
|
||||
/// properly implemented in the open-source proxy: https://github.com/matrix-org/sliding-sync/issues/197
|
||||
// NOTE: SS proxy workaround.
|
||||
#[instrument(skip_all)]
|
||||
#[instrument(skip_all, fields(room_id))]
|
||||
fn compute_limited(
|
||||
local_rooms: &BTreeMap<OwnedRoomId, SlidingSyncRoom>,
|
||||
remote_rooms: &mut BTreeMap<OwnedRoomId, v4::SlidingSyncRoom>,
|
||||
@@ -962,6 +962,8 @@ fn compute_limited(
|
||||
continue;
|
||||
}
|
||||
|
||||
Span::current().record("room_id", tracing::field::debug(room_id));
|
||||
|
||||
let remote_events = &remote_room.timeline;
|
||||
if remote_events.is_empty() {
|
||||
trace!("no timeline updates in the response => not limited");
|
||||
|
||||
Reference in New Issue
Block a user