Skip to main content

publication_cut_short

Function publication_cut_short 

Source
fn publication_cut_short(
    session_id: SessionId,
    ssa_state: &SessionSsaState,
    claim: ClaimedPublication,
    cause: &TransportSessionError,
) -> TransportSessionError
Expand description

Puts a claimed member back after its publication failed, and reports the cut.

The single place a cut-short publication is logged — once, at warn!, with the member and how many are still owed — and turned into an error: the non-fatal SessionManagerError::NotAdmitted, whichever path was publishing. The Session is untouched and the Exit is told nothing; whether it asks again is its own business (see SessionSsaState::unpublished).