mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
refactor: use deno_cache_dir crate (#20092)
Uses https://github.com/denoland/deno_cache/pull/26
This commit is contained in:
parent
a037ed77a2
commit
05f838a57c
16 changed files with 221 additions and 1946 deletions
|
@ -422,7 +422,10 @@ pub struct ModuleRegistry {
|
|||
impl ModuleRegistry {
|
||||
pub fn new(location: PathBuf, http_client: Arc<HttpClient>) -> Self {
|
||||
// the http cache should always be the global one for registry completions
|
||||
let http_cache = Arc::new(GlobalHttpCache::new(location));
|
||||
let http_cache = Arc::new(GlobalHttpCache::new(
|
||||
location,
|
||||
crate::cache::RealDenoCacheEnv,
|
||||
));
|
||||
let mut file_fetcher = FileFetcher::new(
|
||||
http_cache.clone(),
|
||||
CacheSetting::RespectHeaders,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue