Skip to main content

parse_agent_names_body

Function parse_agent_names_body 

Source
pub(crate) fn parse_agent_names_body(value: &Value) -> PeerAgents
Expand description

Reads an agent-names body: the names, capped as above, and each listed agent’s state from agent_status ({name: {state, since_ms}}). A state for a name the body doesn’t list, or one this build doesn’t know, is dropped, so the map is never larger than the name list. The same goes for agent_lines ({name: line}). A body from a build before agent_status gives names only.