Skip to content

Commit 6957e0d

Browse files
committed
docs: add comment to PING_TIMER
1 parent 5815289 commit 6957e0d

File tree

1 file changed

+2
-0
lines changed
  • lightning-background-processor/src

1 file changed

+2
-0
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ const FRESHNESS_TIMER: u64 = 1;
5252

5353
#[cfg(not(debug_assertions))]
5454
const PING_TIMER: u64 = 5;
55+
/// Signature operations take a lot longer without compiler optimisations.
56+
/// Increasing the ping timer allows for this but slower devices will be disconnected if the timeout is reached.
5557
#[cfg(debug_assertions)]
5658
const PING_TIMER: u64 = 30;
5759

0 commit comments

Comments
 (0)