Skip to main content

check_item_count

Function check_item_count 

Source
pub fn check_item_count(len: usize) -> AppResult<()>
Expand description

Rejects a list of more than MAX_ITEMS distinct affected items. Callers that resolve item references one by one (the REST API) drop repeated references and check this first, so a long list costs no lookups; create drops repeated items (one row per item, the first mention wins) and checks again.