Skip to main content

Module insert_backoff_gate_rx

Module insert_backoff_gate_rx 

Source
Expand description

Compiler pass - pair every synthesized wire::Recv op with a downstream BackoffGateRx. Runs after insert_peer_health_gate_rx so the RX chain order is Recv → DedupGateRx → PeerHealthGateRx → BackoffGateRx.

The gate reads the inbound envelope’s source peer from RuntimeResourceRef::envelope_src_peer and consults [crate::framework::BackoffTable::should_retry]. Peers in cooldown fail with a cooldown label.

Constants§

GATED_KEY
Idempotence stamp on the gated Recv.

Functions§

insert_backoff_gate_rx
Insert a BackoffGateRx after every synthesized wire::Recv.