fix(sync): Stop waking sync loops when removing to-device events

This commit is contained in:
Erwan Leboucher
2026-07-16 22:15:27 +02:00
parent 8945cc9e10
commit e2eb980b5e
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
Fixed high CPU usage when multiple clients from the same account were connected at once. Each sync woke the account's other sync loops, causing them to wake each other in a loop.
-2
View File
@@ -253,8 +253,6 @@ pub async fn remove_to_device_events<Until>(
self.db.todeviceid_events.del(key);
})
.await;
self.services.sync.wake(user_id).await;
}
/// Updates device metadata and increments the device list version.