From a635c9700c0b99c3ad128c21727fdcfb23bad72f Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 3 Feb 2023 19:15:16 +0000 Subject: refactor: reland "preserve ProcState::file_fetcher between restarts" (#17636) Just some watcher init step that I thought would be "cloned over" but needs to be done again on reset. --- cli/util/file_watcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/util/file_watcher.rs') diff --git a/cli/util/file_watcher.rs b/cli/util/file_watcher.rs index cb8ee419a..05415f2a6 100644 --- a/cli/util/file_watcher.rs +++ b/cli/util/file_watcher.rs @@ -322,13 +322,13 @@ where continue; }, _ = operation_future => { + consume_paths_to_watch(&mut watcher, &mut paths_to_watch_receiver); // TODO(bartlomieju): print exit code here? info!( "{} {} finished. Restarting on file change...", colors::intense_blue("Watcher"), job_name, ); - consume_paths_to_watch(&mut watcher, &mut paths_to_watch_receiver); }, }; -- cgit v1.2.3