Revert "fix(watch): preserve ProcState::file_fetcher between restarts (#15466) (#17591)

This reverts commit 3545bff678.
This commit is contained in:
Bartek Iwańczuk 2023-01-30 16:22:17 +01:00 committed by GitHub
parent 3035dee9f1
commit d318e38b76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 43 additions and 127 deletions

View file

@ -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);
},
};