summaryrefslogtreecommitdiff
path: root/cli/cache/mod.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-08-08 11:41:30 +0200
committerGitHub <noreply@github.com>2024-08-08 09:41:30 +0000
commit6fce23c54ec619168eee096fc7bf801d0cec0cb6 (patch)
tree211d715cf75817a09c63e6dad943d6623eef67f1 /cli/cache/mod.rs
parent93d479252b5a18e6e782c74b808240bd3ef036bd (diff)
perf: skip saving to emit cache after first failure (#24896)
Diffstat (limited to 'cli/cache/mod.rs')
-rw-r--r--cli/cache/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/cache/mod.rs b/cli/cache/mod.rs
index 3430f74f7..772d2359d 100644
--- a/cli/cache/mod.rs
+++ b/cli/cache/mod.rs
@@ -106,7 +106,7 @@ pub use deno_cache_dir::HttpCache;
/// A "wrapper" for the FileFetcher and DiskCache for the Deno CLI that provides
/// a concise interface to the DENO_DIR when building module graphs.
pub struct FetchCacher {
- emit_cache: EmitCache,
+ emit_cache: Arc<EmitCache>,
file_fetcher: Arc<FileFetcher>,
file_header_overrides: HashMap<ModuleSpecifier, HashMap<String, String>>,
global_http_cache: Arc<GlobalHttpCache>,
@@ -118,7 +118,7 @@ pub struct FetchCacher {
impl FetchCacher {
pub fn new(
- emit_cache: EmitCache,
+ emit_cache: Arc<EmitCache>,
file_fetcher: Arc<FileFetcher>,
file_header_overrides: HashMap<ModuleSpecifier, HashMap<String, String>>,
global_http_cache: Arc<GlobalHttpCache>,