Skip to main content

Module backoff_rx

Module backoff_rx 

Source
Expand description

BackoffGateRx syscall op - gate inserted by the compiler pass bb-compiler/src/insert_backoff_gate_rx.rs in the RX chain. Consults bb_runtime::framework::BackoffTable for the inbound envelope’s source peer and forwards the input value on retry- eligible; drops with a cooldown reason when the peer is still in backoff.

The source peer is read from RuntimeResourceRef::envelope_src_peer populated by the engine per inbound envelope (RX gates never consult a NodeProto attribute for peer identity; the runtime delivers the inbound src_peer directly).

Structs§

BackoffGateRxOp
Marker struct for register_syscall::<BackoffGateRxOp>.

Constants§

DOMAIN
(domain, op_type) registration key.
OP_TYPE
Op type name.

Functions§

invoke
Invoke fn - consults BackoffTable::should_retry for the envelope’s source peer and forwards the input on retry-eligible.