Skip to content

Commit

Permalink
remove add check
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed May 26, 2024
1 parent 3cc40a7 commit 3e5934a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions torrent-piece-request-order.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ func (t *Torrent) updatePieceRequestOrderPiece(pieceIndex int) {
pro.Update(key, t.requestStrategyPieceOrderState(pieceIndex))
return
}
pending := !t.ignorePieceForRequests(pieceIndex)
if pending {
pro.Add(key, t.requestStrategyPieceOrderState(pieceIndex))
} else {
pro.Delete(key)
}
//pending := !t.ignorePieceForRequests(pieceIndex)
//if pending {
pro.Add(key, t.requestStrategyPieceOrderState(pieceIndex))
//} else {
// pro.Delete(key)
//}
}

func (t *Torrent) clientPieceRequestOrderKey() interface{} {
Expand Down

0 comments on commit 3e5934a

Please sign in to comment.