Refactor
This commit is contained in:
parent
205ce3265a
commit
bde18ab734
5 changed files with 204 additions and 184 deletions
|
|
@ -81,7 +81,7 @@ impl ChunkTracker {
|
|||
pub fn mark_chunk_request_cancelled(
|
||||
&mut self,
|
||||
index: ValidPieceIndex,
|
||||
chunk: u32,
|
||||
_chunk: u32,
|
||||
) -> Option<bool> {
|
||||
if *self.have.get(index.get() as usize)? {
|
||||
return Some(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue