issue-949_test.go | 6 ++++-- storage/piece-completion.go | 3 ++- tests/issue-952/issue-952_test.go | 6 ++++-- tests/peers-bootstrapping/main.go | 16 +++++++++------- diff --git a/issue-949_test.go b/issue-949_test.go index f04bd5574d3f7ebd8dc69744573aa1058a1b357c..89b459294c5ce451ad26c84c414577b5ecb7cbee 100644 --- a/issue-949_test.go +++ b/issue-949_test.go @@ -1,9 +1,11 @@ package torrent import ( - "github.com/anacrolix/torrent/metainfo" - qt "github.com/frankban/quicktest" "testing" + + qt "github.com/frankban/quicktest" + + "github.com/anacrolix/torrent/metainfo" ) func TestIssue949LastPieceZeroPadding(t *testing.T) { diff --git a/storage/piece-completion.go b/storage/piece-completion.go index edc1e086437584d2d456de0e29cc0ceb5b224569..1260aba0b5c8ac9fcde886c42871a401b1c5a2e3 100644 --- a/storage/piece-completion.go +++ b/storage/piece-completion.go @@ -1,8 +1,9 @@ package storage import ( + "os" + "github.com/anacrolix/log" - "os" "github.com/anacrolix/torrent/metainfo" ) diff --git a/tests/issue-952/issue-952_test.go b/tests/issue-952/issue-952_test.go index 8cf154119c2cd33555597b3124b9a4f14e5001a0..822064770480fc8807f51234cb65d29e39e1f12a 100644 --- a/tests/issue-952/issue-952_test.go +++ b/tests/issue-952/issue-952_test.go @@ -1,11 +1,13 @@ package issue_952 import ( + "testing" + + qt "github.com/frankban/quicktest" + "github.com/anacrolix/torrent/bencode" "github.com/anacrolix/torrent/metainfo" "github.com/anacrolix/torrent/types/infohash" - qt "github.com/frankban/quicktest" - "testing" ) type scrapeResponse struct { diff --git a/tests/peers-bootstrapping/main.go b/tests/peers-bootstrapping/main.go index 14cda31fe9f0803cc12cadaf31a0ea959a766004..4114c5c385655a1309af1e29cd8996517d18743c 100644 --- a/tests/peers-bootstrapping/main.go +++ b/tests/peers-bootstrapping/main.go @@ -3,19 +3,21 @@ import ( "crypto/rand" "fmt" + "io" + "net/http" + "os" + "path/filepath" + "time" + _ "github.com/anacrolix/envpprof" "github.com/anacrolix/log" "github.com/anacrolix/sync" + "github.com/dustin/go-humanize" + "golang.org/x/exp/slog" + "github.com/anacrolix/torrent" "github.com/anacrolix/torrent/bencode" "github.com/anacrolix/torrent/metainfo" - "github.com/dustin/go-humanize" - "golang.org/x/exp/slog" - "io" - "net/http" - "os" - "path/filepath" - "time" ) func assertNil(x any) {