FedP2P/request-strategy
YenForYang a8db640c62
Drop bradfitz/iter dependency (#605)
* Drop bradfitz/iter dependency

`range iter.N` looks nice and doesn't allocate, but unfortunately using a `range` expression blocks a function from being inlined wherever it's used (for now). It's not that we need inlining in all cases, but I do think a C-style for loop looks just as nice and is probably clearer to the majority. There also aren't any clear disadvantages to changing (unless you just happen to dislike the look of C)

* Update misc_test.go

* Update rlreader_test.go

* Update torrent_test.go

* Update bench_test.go

* Update client_test.go

* Update iplist_test.go

* Update mse_test.go

* Update peerconn_test.go

* Update peerconn.go

* Update order_test.go

* Update decoder_test.go

* Update main.go

* Update bench-piece-mark-complete.go

* Update main.go

* Update torrent.go

* Update iplist_test.go

* Update main.go
2021-09-14 13:46:50 +10:00
..
order.go Optimize peersForPieces allocations for make and sorting 2021-09-10 23:07:10 +10:00
order_test.go Drop bradfitz/iter dependency (#605) 2021-09-14 13:46:50 +10:00
peer.go Add a working request strategy test 2021-06-07 13:01:39 +10:00
piece.go Get max unverified bytes working 2021-06-07 13:01:39 +10:00
torrent.go Prepare to implement max unverified bytes 2021-06-07 13:01:39 +10:00