The while let Ok(events) = extrinsic.events().await block in the calc_para_tps method blocks, hence this was fixed with a simple let events = extrinsic.events().await?; call.
Additionally, the time_diff parameter was scaled to be represented in seconds rather than milliseconds.
The
while let Ok(events) = extrinsic.events().await
block in thecalc_para_tps
method blocks, hence this was fixed with a simplelet events = extrinsic.events().await?;
call.Additionally, the
time_diff
parameter was scaled to be represented in seconds rather than milliseconds.