From 4930f050c56660c245e5976979babb66aea7bfd5 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 20 Jul 2026 23:44:15 +0200 Subject: chore: Last big refactoring --- crates/daemon/src/api/control.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crates/daemon/src/api/control.rs') diff --git a/crates/daemon/src/api/control.rs b/crates/daemon/src/api/control.rs index 94fb7ce9..ff19f593 100644 --- a/crates/daemon/src/api/control.rs +++ b/crates/daemon/src/api/control.rs @@ -37,18 +37,14 @@ enum SyncState { /// It's not a component - it's part of the daemon's core infrastructure. pub(crate) struct ControlService { handle: DaemonHandle, - task_handle: tokio::task::JoinHandle<()>, } impl ControlService { /// Create a new control service with the given daemon handle. pub(crate) fn new(handle: DaemonHandle) -> Self { - let task_handle = tokio::spawn(sync_loop(handle.clone())); + tokio::spawn(sync_loop(handle.clone())); - Self { - handle, - task_handle, - } + Self { handle } } /// Get a tonic server for this service. -- cgit v1.3.1