mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
move sync watcher from globals service to sync service
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
26c890d5ac
commit
3ed2c17f98
6 files changed
+170
-148
No files matched your search
@@ -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