Skip to main content

first_try

Function first_try 

Source
pub(super) fn first_try(
    tried: &mut HashMap<String, (i64, i64)>,
    block_id: &str,
    expiry_ms: i64,
    now_ms: i64,
) -> bool
Expand description

Records that expiry_ms is tried for block_id at now_ms; false when it already was within TRIED_MS. Entries older than that are dropped.