Skip to main content

hold_wan_for_unavailable

Function hold_wan_for_unavailable 

Source
pub(crate) fn hold_wan_for_unavailable(
    mstore: &Store,
    handler: &ReactiveHandler,
    req: &InjectionRequest,
) -> bool
Expand description

A verified WAN message to an agent here that can’t work: kept for 24 h, as a local one is, and delivered when it can (the cross-machine operations spec, §4.5). true when it is kept, so the caller neither injects it into a turn that would fail nor hands it back to the relay. Its files are already in the attachment store (fetched before this), and the row keeps their list: the replay builds what the agent is given for them, as a delivery now would. Files that were dropped, with a note saying why, are left to the old path: the row has nowhere to keep that note.