From 012bc030141b58c2116f5bcab415226f0e0b2346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 21 Apr 2026 11:01:47 +0200 Subject: [PATCH] refactor: Use TaskMonitor::spawn_finite_task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- crates/matrix-sdk/src/client/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/matrix-sdk/src/client/mod.rs b/crates/matrix-sdk/src/client/mod.rs index 47bb91785..f6c966365 100644 --- a/crates/matrix-sdk/src/client/mod.rs +++ b/crates/matrix-sdk/src/client/mod.rs @@ -42,7 +42,6 @@ use matrix_sdk_base::{ }; use matrix_sdk_common::{ cross_process_lock::CrossProcessLockConfig, - executor::spawn, ttl_cache::{TtlCache, TtlValue}, }; #[cfg(feature = "e2e-encryption")] @@ -2307,7 +2306,7 @@ impl Client { debug!("spawning task to refresh supported versions cache"); let client = self.clone(); - spawn(async move { + self.task_monitor().spawn_finite_task("refresh supported versions cache", async move { if let Err(error) = client.refresh_supported_versions_cache(failsafe).await { warn!("failed to refresh supported versions cache: {error}"); }