Function massa_grpc::stream::tx_throughput::resolve_interval_secs

source ยท
fn resolve_interval_secs(requested: Option<u64>) -> u64
Expand description

Resolve the throughput interval (in seconds) from an optional client-supplied value, falling back to the default when it is absent or zero.

A zero interval must never reach tokio::time::interval, which panics when the period is zero and would take down the streaming task.