MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _cleanup

Method _cleanup

uncommon_route/traces.py:535–537  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

533 return None
534
535 def _cleanup(self) -> None:
536 cutoff_ts = self._now() - (self._hot_days * 86400.0)
537 self._records = [r for r in self._records if r.timestamp >= cutoff_ts]
538
539 def _load(self) -> None:
540 rows = self._storage.load_recent_days(self._hot_days, now=self._now())

Callers 1

recordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected