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

Function prune_registry_file

packages/server/src/inspector.rs:591–597  ·  view source on GitHub ↗
(registry: &mut InspectorRegistryFile)

Source from the content-addressed store, hash-verified

589}
590
591fn prune_registry_file(registry: &mut InspectorRegistryFile) {
592 let cutoff = now_unix_ms().saturating_sub(INSPECTOR_REGISTRY_TTL.as_millis() as u64);
593 registry.version = REGISTRY_VERSION;
594 registry
595 .inspectors
596 .retain(|entry| entry.updated_at_unix_ms >= cutoff);
597}
598
599fn now_unix_ms() -> u64 {
600 SystemTime::now()

Callers 3

upsertMethod · 0.85
removeMethod · 0.85
read_live_entriesMethod · 0.85

Calls 1

now_unix_msFunction · 0.85

Tested by

no test coverage detected