mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
fix(sync): Stop waking sync loops when removing to-device events
This commit is contained in:
2 files changed
+1
-2
No files matched your search
@@ -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.
|
||||||
@@ -253,8 +253,6 @@ impl super::Service {
|
|||||||
self.db.todeviceid_events.del(key);
|
self.db.todeviceid_events.del(key);
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
self.services.sync.wake(user_id).await;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Updates device metadata and increments the device list version.
|
/// Updates device metadata and increments the device list version.
|
||||||
|
|||||||
Reference in new issue
Block a user