diff --git a/issue-949_test.go b/issue-949_test.go index f04bd5574d..89b459294c 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 edc1e08643..1260aba0b5 100644 --- a/storage/piece-completion.go +++ b/storage/piece-completion.go @@ -1,9 +1,10 @@ package storage import ( - "github.com/anacrolix/log" "os" + "github.com/anacrolix/log" + "github.com/anacrolix/torrent/metainfo" ) diff --git a/tests/issue-952/issue-952_test.go b/tests/issue-952/issue-952_test.go index 8cf154119c..8220647704 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 14cda31fe9..4114c5c385 100644 --- a/tests/peers-bootstrapping/main.go +++ b/tests/peers-bootstrapping/main.go @@ -3,19 +3,21 @@ package main 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) {