chore: clean up code — remove dead code, stale allows, eprintln→tracing, remove volatile data from docs

This commit is contained in:
Nikketryhard
2026-02-14 16:11:34 -06:00
parent 2e2d90bdb9
commit 6842bfeaa5
6 changed files with 11 additions and 19 deletions

View File

@@ -147,14 +147,6 @@ impl MitmStore {
latest.remove(cascade_id)
}
/// Peek at the latest usage without consuming it.
#[allow(dead_code)]
pub async fn peek_usage(&self, cascade_id: &str) -> Option<ApiUsage> {
let latest = self.latest_usage.read().await;
latest.get(cascade_id)
.cloned()
}
/// Get aggregate stats.
pub async fn stats(&self) -> MitmStats {
self.stats.read().await.clone()