Skip to main content

forget_request_of

Function forget_request_of 

Source
fn forget_request_of(
    last_request: &mut Option<(Vec<SsaId<HoprPseudonym>>, HoprStartProtocol)>,
    retired: &SsaId<HoprPseudonym>,
)
Expand description

Forgets last_request when retired is one of its members.

A batch with a retired member is not one the Entry can still be asked to commit to as a whole, and the supervisor ends its re-sends. The stored message goes with it, so a ResendSsaRequest that was already queued finds nothing to send. Left to the registration check in resend_payload alone, that refusal would depend on the reconstructor having dropped the retired member’s registration.