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
ucwong
52bb7f7a39
connection drop log debug level
2021-01-07 00:21:59 +11:00
Yaroslav Kolomiiets
6ea0344efd
torrent-metainfo-pprint: include the 'nodes' field into the output when non-empty
2020-05-21 16:31:14 +10:00
Matt Joiner
cb1bf0f413
goimports -local
2019-08-21 20:58:40 +10:00
Matt Joiner
9afa2e70d7
cmd/torrent-metainfo-pprint: Fix -files for single-file torrents
2019-07-17 15:28:49 +10:00
Matt Joiner
fc4fab91f5
Switch to goimports import sorting
...
Used to use sortimports, but it's old, and goimports seems to have an opinion now.
2018-11-02 23:12:01 +11:00
Matt Joiner
2b1068885c
cmd/torrent-metainfo-pprint: Use bufio input and enable envpprof
2018-06-17 16:20:02 +10:00
Matt Joiner
4190856b6c
sortimports
2017-12-01 18:12:29 +11:00
Matt Joiner
f960ec1b65
cmd/torrent-metainfo-pprint: Just take a single metainfo to stdin
...
Move processing into its own function too.
2017-11-08 19:33:05 +11:00
Matt Joiner
2ab850f56e
cmd/torrent-metainfo-pprint: Include metainfo's url-list in output
...
Helps with testing #197 .
2017-10-14 16:41:14 +11:00
Matt Joiner
594053609c
Fixes for changes to metainfo.MetaInfo.UnmarshalInfo
2016-09-20 18:39:07 +10:00
Matt Joiner
2a1cef7c9e
Remove the InfoEx type, and don't generate its infohash on the fly
...
Fixes #106 .
2016-08-26 20:29:05 +10:00
Matt Joiner
abbbb6e115
cmd/torrent-metainfo-pprint: Add Announce and AnnounceList keys
2016-05-23 10:18:39 +10:00
Matt Joiner
2d160b0419
metainfo.InfoEx.Hash becomes a function, UpdateBytes is added, and Bytes used in marshalling
...
Fixes #80 .
2016-05-05 22:40:38 +10:00
Matt Joiner
8ae88151a8
cmd/torrent-metainfo-pprint: Add -files flag, and expose NumFiles and TotalLength in output
2016-05-03 12:51:31 +10:00
Matt Joiner
1936054615
cmd/torrent-metainfo-pprint: Also print InfoHash
2016-05-02 19:14:49 +10:00
Matt Joiner
c469d4a837
cmd/torrent-metainfo-pprint: Switch to tagflag for argument parsing
2016-04-03 16:37:17 +10:00
Matt Joiner
fcd98acc9b
cmd/torrent-metainfo-pprint: Don't print extra newline when -name is true
2015-07-04 13:30:26 +10:00
Matt Joiner
348c6406eb
cmd/torrent-metainfo-pprint: Output JSON instead
2015-06-22 19:50:29 +10:00
Matt Joiner
526d9d738e
Rewrite imports to local bencode and metainfo
2015-04-27 14:55:01 +10:00
Matt Joiner
a7946c773e
cmd/torrent-metainfo-pprint: Add -name flag
2015-02-10 00:20:14 +11:00
Matt Joiner
0e3f7a5520
Change all references to github.com/nsf/libtorgo to github.com/anacrolix/libtorgo
2014-11-28 12:13:57 -06:00
Matt Joiner
1415c0d824
goimports decided to reorganise imports
2014-04-08 19:39:34 +10:00
Matt Joiner
2a9d48d09f
Add cmds 'torrent-create' and 'torrent-metainfo-pprint' using nsf's libtorgo
2013-09-19 17:00:51 +10:00