feat: void-cat redirects

This commit is contained in:
2024-10-15 12:17:03 +01:00
parent c86631423d
commit b90995f07f
9 changed files with 119 additions and 61 deletions

View File

@ -101,7 +101,7 @@ impl FileStore {
if compress {
let start = SystemTime::now();
let proc_result = compress_file(tmp_path.clone(), mime_type)?;
if let FileProcessorResult::NewFile(new_temp) = proc_result {
if let FileProcessorResult::NewFile(mut new_temp) = proc_result {
let old_size = tmp_path.metadata()?.len();
let new_size = new_temp.result.metadata()?.len();
let time_compress = SystemTime::now().duration_since(start)?;