move sync watcher from globals service to sync service

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-06 01:24:44 +00:00
parent 26c890d5ac
commit 3ed2c17f98
6 changed files with 170 additions and 148 deletions

View file

@ -51,7 +51,7 @@ pub(crate) async fn sync_events_v4_route(
let sender_device = body.sender_device.expect("user is authenticated");
let mut body = body.body;
// Setup watchers, so if there's no response, we can wait for them
let watcher = services.globals.watch(sender_user, &sender_device);
let watcher = services.sync.watch(sender_user, &sender_device);
let next_batch = services.globals.next_count()?;