Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions turbopack/crates/turbo-tasks-fs/src/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,13 @@ impl DiskWatcher {
let config = Config::default();
// we should track and invalidate each part of a symlink chain ourselves in
// turbo-tasks-fs
config.with_follow_symlinks(false);
let config = config.with_follow_symlinks(false);

let mut notify_watcher = if let Some(poll_interval) = poll_interval {
let config = config.with_poll_interval(poll_interval);
NotifyWatcher::Polling(PollWatcher::new(tx, config)?)
} else {
NotifyWatcher::Recommended(RecommendedWatcher::new(tx, Config::default())?)
NotifyWatcher::Recommended(RecommendedWatcher::new(tx, config)?)
};

// TOCTOU: we must watch `root_path` before calling any invalidators and setting up the
Expand Down
Loading