Skip to content

Commit

Permalink
wip: add explanations about work to do
Browse files Browse the repository at this point in the history
  • Loading branch information
LIAUD Corentin committed Sep 20, 2024
1 parent 14cd2a4 commit cc5c9b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/librqbit/src/torrent_state/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ impl AsyncRead for FileStream {
self.as_mut().advance(bytes_to_read as u64);
tbuf.advance(bytes_to_read);

// Buffer has yet been filled with data:
// - Check if other streams actually need this piece
// - if not needed by other, ask underlying storage to delete the piece
// - on_piece_completed() could thus be replaced by delete_chunk()
// - update value in chunk tracker to say we do not have this piece anymore (or add a new BitV when removed pieces ?)

Poll::Ready(Ok(()))
}
}
Expand Down

0 comments on commit cc5c9b7

Please sign in to comment.