Skip to main content

refuse_empty_reply

Function refuse_empty_reply 

Source
pub(super) fn refuse_empty_reply(
    state: &AppState,
    auth_via: ReactiveAuthVia,
    req: &InjectionRequest,
) -> Option<Value>
Expand description

Refuse an agent’s reply to a message that asked for none, or a bare acknowledgement to an agent that wrote to it a moment ago (backend::ack_policy); otherwise remember the message, for the next reply’s check. Only the sender’s own srv refuses (a full-key, first-hop, host-tier request); a message arriving from another host is only remembered.