0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-09 13:49:37 -04:00

update: get remote size from remote modules store

This commit is contained in:
HasanAlrimawi 2024-12-23 12:10:59 +02:00
parent e98e110b0a
commit 9417786309
2 changed files with 7 additions and 1 deletions

View file

@ -814,7 +814,9 @@ impl<'a> DenoCompileBinaryWriter<'a> {
log::info!(
"{} {}\n",
crate::colors::bold("Remote modules size:"),
crate::util::display::human_size(remote_modules_size)
crate::util::display::human_size(
remote_modules_store.get_data_byte_len() as f64
)
);
let metadata = Metadata {

View file

@ -271,6 +271,10 @@ impl RemoteModulesStoreBuilder {
}
}
}
pub fn get_data_byte_len(&self) -> u64 {
self.data_byte_len
}
}
pub enum DenoCompileModuleSource {