From 08059677bc10abbed20eed6238c76ff8084ff460 Mon Sep 17 00:00:00 2001 From: Mariusz Klochowicz Date: Fri, 26 Nov 2021 12:54:46 +1030 Subject: [PATCH] Increase heartbeat timeout interval in debug mode to 45s 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. --- daemon/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/lib.rs b/daemon/src/lib.rs index d08ec17..ed83e3b 100644 --- a/daemon/src/lib.rs +++ b/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;