From b42649a524e177fb7c5ed4ca4ca2eb4cf79bd8d5 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Sat, 30 Mar 2024 14:07:18 +0000 Subject: [PATCH] Remove a couple unnecessary todos --- crates/librqbit/src/torrent_state/live/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/librqbit/src/torrent_state/live/mod.rs b/crates/librqbit/src/torrent_state/live/mod.rs index 15fd2fe..4713ec2 100644 --- a/crates/librqbit/src/torrent_state/live/mod.rs +++ b/crates/librqbit/src/torrent_state/live/mod.rs @@ -990,7 +990,6 @@ impl PeerHandler { } }; - // TODO: we don't need chunk info to send data. We can just read the file. let chunk_info = match self.state.lengths.chunk_info_from_received_data( piece_index, request.begin, @@ -1005,8 +1004,6 @@ impl PeerHandler { } }; - // TODO: we only need to check if we have the piece verified. We shouldn't be - // sending unvalidated chunks. if !self .state .lock_read("is_chunk_ready_to_upload")