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.
sync_lock
response_processor
SlidingSync
1 parent d73a02c commit 36713adCopy full SHA for 36713ad
crates/matrix-sdk/src/sliding_sync/mod.rs
@@ -258,10 +258,16 @@ impl SlidingSync {
258
// happens here.
259
260
let sync_response = {
261
+ let _timer = timer!("response processor");
262
+
263
let response_processor = {
264
// Take the lock to avoid concurrent sliding syncs overwriting each other's room
265
// infos.
- let _sync_lock = self.inner.client.base_client().sync_lock().lock().await;
266
+ let _sync_lock = {
267
+ let _timer = timer!("acquiring the `sync_lock`");
268
269
+ self.inner.client.base_client().sync_lock().lock().await
270
+ };
271
272
let mut response_processor =
273
SlidingSyncResponseProcessor::new(self.inner.client.clone());
0 commit comments