storageLeft = &cap
}
var allTorrentsUnverifiedBytes int64
- min, ok := pro.tree.Min()
- if !ok {
- return
- }
- pro.tree.Ascend(min, func(_i pieceRequestOrderItem) bool {
+ pro.tree.Scan(func(_i pieceRequestOrderItem) bool {
ih := _i.key.InfoHash
var t Torrent = input.Torrent(ih)
var piece Piece = t.Piece(_i.key.Index)