From 8a4918309a9226d7eac7afa3386204e13e736bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 23 Jan 2025 13:37:27 +0100 Subject: [PATCH] refactor(ui): Rename the abortion sender in the SyncService Termination aligns better with the existing terminology. --- crates/matrix-sdk-ui/src/sync_service.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk-ui/src/sync_service.rs b/crates/matrix-sdk-ui/src/sync_service.rs index e54c3eee7..1f17bd3ff 100644 --- a/crates/matrix-sdk-ui/src/sync_service.rs +++ b/crates/matrix-sdk-ui/src/sync_service.rs @@ -73,7 +73,7 @@ struct SyncTaskSupervisor { task: JoinHandle<()>, /// [`TerminationReport`] sender for the [`SyncTaskSupervisor::shutdown()`] /// function. - abortion_sender: Sender, + termination_sender: Sender, } impl SyncTaskSupervisor { @@ -99,7 +99,7 @@ impl SyncTaskSupervisor { receiver, )); - Self { task, abortion_sender: sender } + Self { task, termination_sender: sender } } /// The role of the supervisor task is to wait for a termination message @@ -295,7 +295,7 @@ impl SyncTaskSupervisor { async fn shutdown(self) -> Result<(), Error> { match self - .abortion_sender + .termination_sender .send(TerminationReport { is_error: false, has_expired: false,