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 8e67c49 commit 5b583a9Copy full SHA for 5b583a9
lightning-background-processor/src/fwd_batch.rs
@@ -9,13 +9,17 @@
9
10
use core::time::Duration;
11
12
+// On startup, we wait a bit before attempting the initial forward, which gives the user some time
13
+// to re-connect peers.
14
+const INIT_FWD_DELAY: Duration = Duration::from_secs(2);
15
+
16
pub(crate) struct BatchDelay {
17
next_batch_delay: Duration,
18
}
19
20
impl BatchDelay {
21
pub(crate) fn new() -> Self {
- let next_batch_delay = rand_batch_delay();
22
+ let next_batch_delay = INIT_FWD_DELAY;
23
Self { next_batch_delay }
24
25
0 commit comments