From a001754a3c9cf9a8ea44fe841b506e8e2bed964d Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Fri, 30 Jun 2023 23:43:47 +0100 Subject: [PATCH] Changed default watcher timeout to 0ms, to default to no timeout. --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 39c496b..30b4bde 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,7 +133,8 @@ async fn main() -> Result<(), anyhow::Error> { .then(|| { Watcher::new( builder.subscribe_events(), - args.watch_debouncer_timeout_ms.unwrap_or(100.0), + // TODO: Better default? + args.watch_debouncer_timeout_ms.unwrap_or(0.0), ) }) .transpose()?;