fix: made code compile for now
This commit is contained in:
@@ -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(());
|
||||
|
||||
Reference in New Issue
Block a user