You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the RetryBackOffLayer with a low (lower than AVG_COST) it is possible trigger a div-by-zero in the layer:
thread 'main' panicked at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-transport-0.6.4/src/layers/retry.rs:230:53:
attempt to divide by zero
With the configured params:
RetryBackoffLayer::new(10,1000,10);
Having a sanity check for the configured CU, or bounding that div would be nice to avoid the panic.
The text was updated successfully, but these errors were encountered:
Component
transports
What version of Alloy are you on?
0.6.4
Operating System
Linux
Describe the bug
When running the RetryBackOffLayer with a low (lower than AVG_COST) it is possible trigger a div-by-zero in the layer:
With the configured params:
Having a sanity check for the configured CU, or bounding that div would be nice to avoid the panic.
The text was updated successfully, but these errors were encountered: