Skip to content

Commit 47ff8af

Browse files
committed
f Add comment for no-std fallback
1 parent c836b29 commit 47ff8af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning-background-processor/src/fwd_batch.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ fn rand_batch_delay_millis() -> u16 {
4545
}
4646
#[cfg(not(feature = "std"))]
4747
{
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.
4851
delay = FALLBACK_DELAY
4952
}
5053

0 commit comments

Comments
 (0)