C2(hephd-self-update): impl correct spawn_self_update_loop doc
All checks were successful
Build / validate (pull_request) Successful in 6m1s

The poller now installs + restarts (not just logs); fix the stale doc and
point at service-env-forge-access as the deployment step that makes the
apply path operational.
This commit is contained in:
Erich Blume 2026-06-04 13:56:27 -07:00
commit 20418240f7

View file

@ -124,8 +124,13 @@ impl Daemon {
} }
/// If self-update is enabled, spawn its background poller: every /// If self-update is enabled, spawn its background poller: every
/// `cfg.interval` it checks the forge for a newer release and (for now) logs /// `cfg.interval` it checks the forge for a newer release and, when one is
/// when one is available. No-op when the mode is off. /// found, installs it and restarts onto the new binary. No-op when off.
///
/// Note: the *apply* path runs `cargo install` and exits, which only works
/// when the daemon's service environment can reach the forge over SSH and
/// find cargo — see the `service-env-forge-access` card (the deployment step
/// that makes this operational).
pub fn spawn_self_update_loop(&self) { pub fn spawn_self_update_loop(&self) {
let Some(cfg) = self.ctx.self_update.clone() else { let Some(cfg) = self.ctx.self_update.clone() else {
return; return;