aboutsummaryrefslogtreecommitdiffstats
path: root/crates/daemon/src/api/control.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-20 23:44:15 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-20 23:44:15 +0200
commit4930f050c56660c245e5976979babb66aea7bfd5 (patch)
tree1a0cc823da65c4258f4434be98e92f814ae4fce2 /crates/daemon/src/api/control.rs
parentchore: Commit (diff)
downloadatuin-4930f050c56660c245e5976979babb66aea7bfd5.zip
chore: Last big refactoring
Diffstat (limited to '')
-rw-r--r--crates/daemon/src/api/control.rs8
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.