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
Signed by: andrew.rioux
GPG Key ID: 9B8BAC47C17ABB94
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ args = ["run", "build", "build", "${@}"]
workspace = false
script = [
"docker-compose run build build --bin sparse-05-server ${@}",
# "docker-compose run build build --bin sparse-05-server --target x86_64-pc-windows-gnu ${@}",
"docker-compose run build build --bin sparse-05-server --target x86_64-pc-windows-gnu ${@}",
"docker-compose run build build --bin sparse-05-client ${@}",
]

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(());