fix: made code compile for now
This commit is contained in:
parent
cd23ec1b80
commit
239c5ccc40
@ -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 ${@}",
|
||||
]
|
||||
|
||||
|
||||
@ -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(());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user