Avril 4 years ago
parent 50af84cc58
commit ac5f323e2d
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -10,13 +10,12 @@ edition = "2018"
async = ["tokio"]
[profile.release]
opt-level = 1 # opt-level >1 causes strange bug in regards to size of memory map??? it still happens on one just not as much????
# To test map a large file in /tmp a bunch of times and hash it.
opt-level = 3
lto = "fat"
codegen-units = 1
[dependencies]
termprogress = { path = "../termprogress" }
termprogress = "0.1.0"
lazy_static = "1.4"
tokio = {version = "0.2", features= ["full"], optional=true}
reqwest = {version = "0.10", features= ["stream"]}

@ -68,6 +68,7 @@ pub async fn perform(url: impl AsRef<str>, path: impl AsRef<Path>, progress: &mu
prog_send!(progress.bump(slice.len() as u64));
}
}
file.flush().await?;
if len.is_none() {
prog_send!(progress.bump(1));
}

Loading…
Cancel
Save