Skip to main content

remote_claims

Function remote_claims 

Source
fn remote_claims(
    state: &AppState,
    agent_id: &str,
) -> Vec<RemoteRegistrationEntry>
Expand description

Every OTHER live instance/channel on this host claiming agent_id, freshest first.

Every agent (this instance’s own included) writes itself into the same host-global shared registry, so this instance’s own entry is filtered out or the “registered elsewhere too” badge would fire on every healthy agent. A crashed sibling’s entry lingers until the next startup-only cleanup_stale_shared sweep, so the pid is checked live here (same-host by construction, per pid_alive).