Skip to main content

unit_table_uses_idempotency

Function unit_table_uses_idempotency 

Source
pub fn unit_table_uses_idempotency(
    table: &UnitTable,
    callees: Option<&HashMap<ExprId, Callee>>,
) -> bool
Expand description

W30 (#2840): does any body in this unit call the first-party Idempotency (claim, dedup or remember)? A Worker that does declares the implicit database that holds its claims and remembered values. The checker resolved each call’s first-party identity (consumes bynk { Idempotency } makes Idempotency a local name for the bynk capability), so a same-named capability from another unit does not count, as for the key scoping in scope_idempotency_key.