]> Sergey Matveev's repositories - btrtrc.git/commitdiff
gorond
authorMatt Joiner <anacrolix@gmail.com>
Wed, 9 Apr 2025 02:25:34 +0000 (12:25 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 9 Apr 2025 02:25:34 +0000 (12:25 +1000)
client-peerconn_test.go
client-tracker_test.go
client.go
testing.go
wstracker.go

index 0e6b53729f02f4bb360ded31afbb88ace24f0942..2620f35abadfc553b139278f32261ab8ea3f76cc 100644 (file)
@@ -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) {
index 0bc63e34109bd2295188464b137c28eec7abf25c..8f164aef0e15b5aa9584c450f78a586ff739290e 100644 (file)
@@ -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) {
index 9001fce1f99ac856254c43f84f9685b30bb18f40..869161441d63093dbaf982db2217c36b3c6e5299 100644 (file)
--- 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
index 1ab74c7a83f3975b2c264e77e8bae27c605c66a7..e7854b8bb9f4d33e2fdc5fa6e09889a27c0ada50 100644 (file)
@@ -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"
 )
index ed5526db150d6b7e0cec349269b4279a94ede5e3..f15655c2615f6ad42e9c837a48a88f326faf8d11 100644 (file)
@@ -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 {