Skip to main content

await_tx_quota

Function await_tx_quota 

Source
pub async fn await_tx_quota(limiter: &LighterTxRateLimiter)
Expand description

Awaits transaction-bucket capacity before a sendTx on either transport.

Paces in the caller’s task before the frame is enqueued, so neither the HTTP client nor the WebSocket feed-handler task sleeps mid-loop.