We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c836b29 commit 47ff8afCopy full SHA for 47ff8af
lightning-background-processor/src/fwd_batch.rs
@@ -45,6 +45,9 @@ fn rand_batch_delay_millis() -> u16 {
45
}
46
#[cfg(not(feature = "std"))]
47
{
48
+ // On no-std, `getpossiblyrandom` will return 0 values, having us always pick the first
49
+ // element of `FWD_DELAYS_MILLIS`. Here, we opt to instead default to `FALLBACK_DELAY` in
50
+ // this case.
51
delay = FALLBACK_DELAY
52
53
0 commit comments