File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
crates/matrix-sdk/src/sliding_sync Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,7 @@ impl SlidingSync {
371
371
Ok ( update_summary)
372
372
}
373
373
374
+ #[ instrument( skip_all) ]
374
375
async fn generate_sync_request (
375
376
& self ,
376
377
txn_id : & mut LazyTransactionId ,
@@ -400,11 +401,15 @@ impl SlidingSync {
400
401
// the response handling has failed, in this case the `pos` hasn't been updated
401
402
// and the same `pos` will be used for this new request.
402
403
let mut position_guard = {
404
+ debug ! ( "Waiting to acquire the `position` lock" ) ;
405
+
403
406
let _timer = timer ! ( "acquiring the `position` lock" ) ;
404
407
405
408
self . inner . position . clone ( ) . lock_owned ( ) . await
406
409
} ;
407
410
411
+ debug ! ( pos = ?position_guard. pos, "Got a position" ) ;
412
+
408
413
let to_device_enabled =
409
414
self . inner . sticky . read ( ) . unwrap ( ) . data ( ) . extensions . to_device . enabled == Some ( true ) ;
410
415
You can’t perform that action at this time.
0 commit comments