Browse Source

Merge #722

722: Increase heartbeat timeout interval in debug mode to 45s r=klochowicz a=klochowicz

As we do not process messages concurrently, heartbeat messages are not processed
during lengthy operations, such as contract setup.

The spam in the amount of commit messages is a bit unfortunate, but only failing
tests on various machines can indicate that the timing might cause issues.

Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
debug-collab-settlement
bors[bot] 3 years ago
committed by GitHub
parent
commit
8b3465c25d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      daemon/src/lib.rs

2
daemon/src/lib.rs

@ -57,7 +57,7 @@ pub mod wire;
// Increasing the value for debug mode makes sure that we don't cause problems
// when testing / CI, whilst the release can still detect status faster
pub const HEARTBEAT_INTERVAL: std::time::Duration =
Duration::from_secs(if cfg!(debug_assertions) { 30 } else { 5 });
Duration::from_secs(if cfg!(debug_assertions) { 45 } else { 5 });
pub const N_PAYOUTS: usize = 200;

Loading…
Cancel
Save