Skip to main content

spawn_watch

Function spawn_watch 

Source
pub fn spawn_watch(state: Arc<SharedState>, system: &SystemConfig)
Expand description

Spawns the poll-based convergence task: every poll_interval (default 2 s) it reloads from etcd and, when the config changed, applies it. Errors are logged and retried on the next tick — a transient etcd outage leaves the last-good config serving.