Shorten watcgdog to 2s

This commit is contained in:
QuantumEntangledAndy committed 2023-09-16 10:42:29 +07:00
1 parent dc6ca3532b
commit 7d4001eb39
1 file changed
+1 -1
+1 -1
View File
@@ -522,7 +522,7 @@ impl StreamData {
},
v = async {
loop {
let check_timeout = timeout(Duration::from_secs(5), watchdog_rx.recv()).await;
let check_timeout = timeout(Duration::from_secs(2), watchdog_rx.recv()).await;
if let Err(_)| Ok(None) = check_timeout {
// Timeout
// Reply with Ok to trigger the restart