feat:#165 copyobject v1

This commit is contained in:
weisd
2024-12-30 13:59:14 +08:00
parent db5b247d58
commit 47f365d385
11 changed files with 671 additions and 161 deletions
+5 -2
View File
@@ -10,8 +10,8 @@ use std::fmt::Debug;
use std::io::ErrorKind;
use tokio::io::DuplexStream;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tracing::info;
use tracing::warn;
use tracing::{error, info};
// use tracing::debug;
use uuid::Uuid;
@@ -263,7 +263,10 @@ impl Erasure {
.await
{
Ok(n) => n,
Err(err) => return (bytes_writed, Some(err)),
Err(err) => {
error!("write_data_blocks err {:?}", &err);
return (bytes_writed, Some(err));
}
};
bytes_writed += writed_n;