MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / prune_stale_polled_agents

Method prune_stale_polled_agents

packages/server/src/inspector.rs:46–51  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

44
45impl InspectorHubState {
46 fn prune_stale_polled_agents(&mut self) {
47 let now = Instant::now();
48 self.agents.retain(|_, agent| {
49 !agent.info.is_null() || now.duration_since(agent.created_at) < POLLED_AGENT_TTL
50 });
51 }
52}
53
54#[derive(Clone)]

Callers 1

ensure_polled_agentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected