move sync watcher from globals service to sync service
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -93,7 +93,7 @@ pub(crate) async fn sync_events_route(
|
||||
}
|
||||
|
||||
// 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.current_count()?;
|
||||
let next_batchcount = PduCount::Normal(next_batch);
|
||||
|
||||
@@ -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()?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user