Shorten watcgdog to 2s
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user