feat(sdk): use the new method in the context of two background jobs

This commit is contained in:
Benjamin Bouvier
2026-04-08 14:16:24 +02:00
parent a2c254d7da
commit ec4e228620
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ pub(in crate::timeline) async fn spawn_crypto_tasks(
CryptoDropHandles {
_redecryption_report_join_handle: redecryption_report_join_handle,
_encryption_changes_handle: task_monitor
.spawn_background_task("timeline::encryption_state_changes", async move {
.spawn_background_job("timeline::encryption_state_changes", async move {
controller.handle_encryption_state_changes().await
})
.abort_on_drop(),

View File

@@ -292,7 +292,7 @@ impl UtdHookManager {
// Spawn a task that will wait for the given delay, and maybe call the parent
// hook then.
let handle = self.client.task_monitor().spawn_background_task("utd_hook", async move {
let handle = self.client.task_monitor().spawn_background_job("utd_hook", async move {
// Wait for the given delay.
sleep(max_delay).await;