refactor: make IncrementalCache accept a CacheDBHash (#27570)

This commit is contained in:
Bartek Iwańczuk 2025-01-06 23:56:36 +00:00 committed by GitHub
parent 6750aa61eb
commit b6f2646c1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 22 additions and 17 deletions

2
cli/cache/mod.rs vendored
View file

@ -298,7 +298,7 @@ impl Loader for FetchCacher {
module_info: &deno_graph::ModuleInfo,
) {
log::debug!("Caching module info for {}", specifier);
let source_hash = CacheDBHash::from_source(source);
let source_hash = CacheDBHash::from_hashable(source);
let result = self.module_info_cache.set_module_info(
specifier,
media_type,