From a963f4198a9e2a8180bf6fa163ece8ae348057d0 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 9 Apr 2025 12:25:34 +1000 Subject: [PATCH] gorond --- client-peerconn_test.go | 3 ++- client-tracker_test.go | 5 +++-- client.go | 3 +-- testing.go | 2 +- wstracker.go | 3 +-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client-peerconn_test.go b/client-peerconn_test.go index 0e6b5372..2620f35a 100644 --- a/client-peerconn_test.go +++ b/client-peerconn_test.go @@ -8,11 +8,12 @@ import ( "github.com/anacrolix/missinggo/v2" "github.com/anacrolix/missinggo/v2/bitmap" - "github.com/anacrolix/torrent/internal/testutil" "github.com/frankban/quicktest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "golang.org/x/time/rate" + + "github.com/anacrolix/torrent/internal/testutil" ) func TestPeerConnEstablished(t *testing.T) { diff --git a/client-tracker_test.go b/client-tracker_test.go index 0bc63e34..8f164aef 100644 --- a/client-tracker_test.go +++ b/client-tracker_test.go @@ -9,10 +9,11 @@ import ( "testing" "time" - "github.com/anacrolix/torrent/internal/testutil" - "github.com/anacrolix/torrent/tracker" "github.com/gorilla/websocket" "github.com/stretchr/testify/require" + + "github.com/anacrolix/torrent/internal/testutil" + "github.com/anacrolix/torrent/tracker" ) func TestClientInvalidTracker(t *testing.T) { diff --git a/client.go b/client.go index 9001fce1..86916144 100644 --- a/client.go +++ b/client.go @@ -18,8 +18,6 @@ import ( "strconv" "time" - "github.com/anacrolix/torrent/webtorrent" - "github.com/anacrolix/chansync" "github.com/anacrolix/chansync/events" "github.com/anacrolix/dht/v2" @@ -49,6 +47,7 @@ import ( "github.com/anacrolix/torrent/tracker" "github.com/anacrolix/torrent/types/infohash" infohash_v2 "github.com/anacrolix/torrent/types/infohash-v2" + "github.com/anacrolix/torrent/webtorrent" ) // Clients contain zero or more Torrents. A Client manages a blocklist, the diff --git a/testing.go b/testing.go index 1ab74c7a..e7854b8b 100644 --- a/testing.go +++ b/testing.go @@ -1,11 +1,11 @@ package torrent import ( - "github.com/stretchr/testify/require" "testing" "time" "github.com/anacrolix/log" + "github.com/stretchr/testify/require" pp "github.com/anacrolix/torrent/peer_protocol" ) diff --git a/wstracker.go b/wstracker.go index ed5526db..f15655c2 100644 --- a/wstracker.go +++ b/wstracker.go @@ -8,14 +8,13 @@ import ( "net/url" "sync" - "github.com/anacrolix/torrent/webtorrent" - "github.com/anacrolix/log" "github.com/gorilla/websocket" "github.com/pion/webrtc/v4" "github.com/anacrolix/torrent/tracker" httpTracker "github.com/anacrolix/torrent/tracker/http" + "github.com/anacrolix/torrent/webtorrent" ) type websocketTrackerStatus struct { -- 2.48.1