diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-02-03 19:15:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 20:15:16 +0100 |
commit | a635c9700c0b99c3ad128c21727fdcfb23bad72f (patch) | |
tree | b31e457547346bd979df45579ca62186ee6027f2 /cli/util/file_watcher.rs | |
parent | b16a958c4f01a1d27d14a6a1d8785c54449a5087 (diff) |
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.
Diffstat (limited to 'cli/util/file_watcher.rs')
-rw-r--r-- | cli/util/file_watcher.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); }, }; |