Do not reopen files back and forth, less bugs

This commit is contained in:
Igor Katson 2024-04-29 20:48:26 +01:00
parent 28f65ef087
commit dad127e0ea
4 changed files with 1 additions and 67 deletions

View file

@ -156,9 +156,6 @@ impl ChunkTracker {
&self.have
}
pub fn get_selected_pieces(&self) -> &BF {
&self.selected
}
pub fn reserve_needed_piece(&mut self, index: ValidPieceIndex) {
self.queue_pieces.set(index.get() as usize, false)
}