torrent/peer_protocol
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
..
compactip.go Make extended handshake a struct, and move a bunch of extended stuff into peer_protocol 2018-07-10 12:20:36 +10:00
decoder.go Apply staticcheck 2020-02-20 11:09:57 +11:00
decoder_test.go Drop bradfitz/iter dependency (#605) 2021-09-14 13:46:50 +10:00
extended.go Add explicit metadata extension types 2021-06-21 12:14:06 +10:00
handshake.go go fmt ./... 2021-09-09 22:51:24 +10:00
int.go Add peer_protocol.Integer.Uint32 2018-07-12 09:16:40 +10:00
messagetype_string.go Add linter CI (#542) 2021-08-16 11:11:31 +10:00
metadata.go Add explicit metadata extension types 2021-06-21 12:14:06 +10:00
msg.go Add comments 2019-10-01 18:13:55 +10:00
pex.go Performance improvements to PEX 2020-10-23 08:58:55 +11:00
pex_test.go Use bytes.Reader instead of bytes.Buffer in a few places 2021-05-05 15:48:57 +10:00
protocol.go Add linter CI (#542) 2021-08-16 11:11:31 +10:00
protocol_test.go Fix fast extension message type constants 2018-02-05 18:00:47 +11:00
reqspec.go Fix peer_protocol.Message.RequestSpec for Type Piece 2018-07-13 21:33:21 +10:00