diff options
Diffstat (limited to 'crates/daemon/src/api/control.rs')
| -rw-r--r-- | crates/daemon/src/api/control.rs | 8 |
1 files changed, 2 insertions, 6 deletions
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. |
