Skip to main content

other_channels

Function other_channels 

Source
pub fn other_channels(
    entries: &[AgentEntry],
    statuses: &HashMap<String, ChannelReport>,
    own_channel: &str,
    own_url: &str,
    now_ms: u64,
) -> Vec<RemoteChannel>
Expand description

Group the shared registry’s entries into this machine’s other channels.

Skips this instance’s own channel and URL (a stale self-entry after a crash), entries past HIDE_AFTER_MS, and entries with no channel (per-channel registry rows, which never belong in the shared directory). An agent listed twice in one channel (two files racing) appears once.