Skip to content

Commit

Permalink
name embed filesystem by path (#497)
Browse files Browse the repository at this point in the history
to avoid crating multiple fs for the same path
  • Loading branch information
sokra authored Oct 11, 2022
1 parent 09d53b4 commit d32e746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turbo-tasks-fs/src/embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub async fn content_from_relative_path(package_path: &str, path: &str) -> Resul
let path = resolved_path.file_name().unwrap().to_str().unwrap();

let disk_fs = DiskFileSystemVc::new(
resolved_path.to_string_lossy().to_string(),
root_path.to_string_lossy().to_string(),
root_path.to_string_lossy().to_string(),
);
disk_fs.await?.start_watching()?;
Expand Down

0 comments on commit d32e746

Please sign in to comment.