Skip to main content

resume_from_disk

Function resume_from_disk 

Source
pub fn resume_from_disk()
Expand description

Seeds the in-memory totals from proxy_usage.json. Call once on proxy startup so measured spend is cumulative across restarts. Idempotent-ish: it merges the persisted totals into whatever is in memory (normally empty).