Nothing (almost)
This commit is contained in:
parent
7ed532ae52
commit
2b768a5505
1 changed files with 4 additions and 3 deletions
|
|
@ -26,9 +26,10 @@ fn compute_chunk_status(lengths: &Lengths, needed_pieces: &BF) -> BF {
|
||||||
let chunks_per_piece = lengths
|
let chunks_per_piece = lengths
|
||||||
.chunks_per_piece(lengths.validate_piece_index(piece_index as u32).unwrap())
|
.chunks_per_piece(lengths.validate_piece_index(piece_index as u32).unwrap())
|
||||||
as usize;
|
as usize;
|
||||||
for i in 0..chunks_per_piece {
|
chunk_bf
|
||||||
chunk_bf.set(offset + i, true);
|
.get_mut(offset..offset + chunks_per_piece)
|
||||||
}
|
.unwrap()
|
||||||
|
.set_all(true);
|
||||||
}
|
}
|
||||||
chunk_bf
|
chunk_bf
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue