Revert "Feat: file transfer, resume (#12557)" (#12620)

This reverts commit 43ec57c769.
This commit is contained in:
RustDesk
2025-08-11 23:25:41 +08:00
committed by GitHub
parent 1fb0123ed7
commit 53efaf125c
4 changed files with 21 additions and 61 deletions

View File

@@ -880,7 +880,6 @@ async fn handle_fs(
let path = get_string(&fs::TransferJob::join(p, &file.name));
match is_write_need_confirmation(&path, &digest) {
Ok(digest_result) => {
job.set_digest(file_size, last_modified);
match digest_result {
DigestCheckResult::IsSame => {
req.set_skip(true);
@@ -910,13 +909,6 @@ async fn handle_fs(
}
}
}
ipc::FS::SendConfirm(bytes) => {
if let Ok(r) = FileTransferSendConfirmRequest::parse_from_bytes(&bytes) {
if let Some(job) = fs::get_job(r.id, write_jobs) {
job.confirm(&r).await;
}
}
}
ipc::FS::Rename { id, path, new_name } => {
rename_file(path, new_name, id, tx).await;
}