Remove a spurious complicated function ".mark_chunk_request_cancelled"
This commit is contained in:
parent
7cda2c9807
commit
02eca15c70
2 changed files with 1 additions and 20 deletions
|
|
@ -904,7 +904,7 @@ impl PeerHandler {
|
|||
req.chunk_index
|
||||
);
|
||||
g.get_chunks_mut()?
|
||||
.mark_chunk_request_cancelled(req.piece_index, req.chunk_index);
|
||||
.mark_piece_broken_if_not_have(req.piece_index);
|
||||
}
|
||||
}
|
||||
PeerState::NotNeeded => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue