chore: clean up code — remove dead code, stale allows, eprintln→tracing, remove volatile data from docs
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user