fix: made code compile for now

This commit is contained in:
Andrew Rioux
2023-09-07 12:56:30 -04:00
parent cd23ec1b80
commit 239c5ccc40
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ pub(super) fn start_file_download<'a, 'b: 'a>(
let mut current_packet_count = 0;
while current_packet_count < packet_count {
/*while current_packet_count < packet_count {
let mut buffers: Vec<Option<Vec<u8>>> = vec![None; FILE_BUFFER_BUFFER_SIZE];
loop {
@@ -81,7 +81,7 @@ pub(super) fn start_file_download<'a, 'b: 'a>(
let Some(buffer) = buffer else { break };
target_file.write(&buffer)?;
}
}
}*/
let Ok(mut lock) = download_file_map.lock() else {
return Ok(());