| 206 | |
| 207 | |
| 208 | class InMemoryRouteStatsStorage(RouteStatsStorage): |
| 209 | def __init__(self) -> None: |
| 210 | self._data: list[dict[str, Any]] = [] |
| 211 | |
| 212 | def load(self) -> list[dict[str, Any]]: |
| 213 | return list(self._data) |
| 214 | |
| 215 | def save(self, records: list[dict[str, Any]]) -> None: |
| 216 | self._data = list(records) |
| 217 | |
| 218 | |
| 219 | # ─── Collector ─── |
no outgoing calls