Skip to main content

count_channels_running

Function count_channels_running 

Source
pub fn count_channels_running(
    entries: &[AgentEntry],
    own_channel: &str,
    own_url: &str,
    now_ms: u64,
) -> u32
Expand description

1 for this channel plus every other channel of this machine with a live entry in the host-global shared registry (swarm_remote::other_channels, with its HIDE_AFTER_MS), clamped to 1..=MAX_CHANNELS_RUNNING. A channel with no agent registered has no entry and is not counted.