| 43 | } |
| 44 | |
| 45 | pub trait CacheStats { |
| 46 | fn fetch(&self, repo_id: RepoId, oid: &str) -> Result<Option<RepoStats>>; |
| 47 | |
| 48 | fn save(&self, repo_id: RepoId, oid: &str, stats: &RepoStats, ttl: Option<u32>) -> Result<()>; |
| 49 | } |
| 50 | |
| 51 | pub struct FetchStats { |
| 52 | pub viewer: Arc<Viewer>, |
nothing calls this directly
no outgoing calls
no test coverage detected