Skip to main content

query_orders_strict

Function query_orders_strict 

Source
pub async fn query_orders_strict(
    backend: &BackendConn,
    acc_id: u64,
    trd_cache: &TrdCache,
) -> Result<Vec<CachedOrder>>
Expand description

v1.4.109: strict 版 query_orders for write/push safety paths.

与 lenient 版区别: decode 失败 / result != 0 → 返 Err (会被 retry 重试). 不再 silent 当 “Ok(empty)” → silent-success 反模式 D (CLAUDE.md #45) 的修复.

Callers that need a trustworthy order baseline before mutating order state must use this strict variant, not the read-path lenient cache-miss helper.