Skip to main content

fetch_issues_cached_current

Function fetch_issues_cached_current 

Source
pub fn fetch_issues_cached_current(
    bin: &Path,
    cache: &IssueCache,
    refs: &[ItemRef],
    listed: Option<ItemState>,
) -> Result<Vec<IssueDoc>>
Expand description

fetch_issues_cached, but a cached issue is served only if its state still matches GitHub’s (#2041): a mismatch is a miss, fetched in full.

state decides what route does (skip, refuse, report a dependency), not just what it says, so it is not trusted for the whole TTL like the text. listed is the state the caller already knows every ref has — --all-open lists its issues as open — which needs no request; with None, the cached refs are rechecked with one shallow fetch_states call per chunk (none when nothing is cached). A failed recheck is not fatal: the cached copies are then treated as misses. Blocking.