We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
position
1 parent fa300d1 commit 610ecd2Copy full SHA for 610ecd2
crates/matrix-sdk/src/sliding_sync/mod.rs
@@ -399,7 +399,11 @@ impl SlidingSync {
399
// has been fully handled successfully, in this case the `pos` is updated, or
400
// the response handling has failed, in this case the `pos` hasn't been updated
401
// and the same `pos` will be used for this new request.
402
- let mut position_guard = self.inner.position.clone().lock_owned().await;
+ let mut position_guard = {
403
+ let _timer = timer!("acquiring the `position` lock");
404
+
405
+ self.inner.position.clone().lock_owned().await
406
+ };
407
408
let to_device_enabled =
409
self.inner.sticky.read().unwrap().data().extensions.to_device.enabled == Some(true);
0 commit comments