mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
@@ -424,7 +424,7 @@ impl Erasure {
|
||||
writers: &mut [Option<BitrotWriter>],
|
||||
readers: Vec<Option<BitrotReader>>,
|
||||
total_length: usize,
|
||||
prefer: &[bool],
|
||||
_prefer: &[bool],
|
||||
) -> Result<()> {
|
||||
if writers.len() != self.parity_shards + self.data_shards {
|
||||
return Err(Error::from_string("invalid argument"));
|
||||
@@ -437,8 +437,6 @@ impl Erasure {
|
||||
end_block += 1;
|
||||
}
|
||||
|
||||
let mut bytes_writed = 0;
|
||||
|
||||
let mut errs = Vec::new();
|
||||
for _ in start_block..=end_block {
|
||||
let mut bufs = reader.read().await?;
|
||||
|
||||
Reference in New Issue
Block a user