]> Sergey Matveev's repositories - btrtrc.git/commitdiff
gorond ./...
authorMatt Joiner <anacrolix@gmail.com>
Tue, 15 Nov 2022 12:22:10 +0000 (23:22 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 15 Nov 2022 12:31:27 +0000 (23:31 +1100)
44 files changed:
analysis/peer-upload-order.go
client.go
cmd/torrent/create.go
cmd/torrent/download.go
cmd/torrent/main.go
cmd/torrent/metainfo.go
cmd/torrent/scrape.go
cmd/torrent/serve.go
config.go
fs/file_handle.go
misc.go
mmap_span/mmap_span.go
mse/cmd/mse/main.go
ordered-bitmap.go
peer-impl.go
peer_protocol/pex.go
peerconn.go
pex.go
piece.go
request-strategy/order.go
requesting.go
smartban.go
socket.go
sources.go
storage/file.go
storage/sqlite-piece-completion.go
storage/test/bench-piece-mark-complete.go
storage/wrappers.go
test/leecher-storage.go
testing.go
torrent.go
tracker/client.go
tracker/http/client.go
tracker/http/http.go
tracker/http/protocol.go
tracker/tracker.go
tracker/udp/conn-client.go
util/dirwatch/dirwatch.go
webrtc.go
webseed-peer.go
webseed/client.go
webtorrent/tracker-client.go
webtorrent/transport.go
wstracker.go

index cef18ce4ced9d493077f1437f46b2de41243c581..871380404887472bacfeca2f4e785b1bcec0bb60 100644 (file)
@@ -5,9 +5,10 @@ import (
        "log"
        "sync"
 
+       "github.com/elliotchance/orderedmap"
+
        "github.com/anacrolix/torrent"
        pp "github.com/anacrolix/torrent/peer_protocol"
-       "github.com/elliotchance/orderedmap"
 )
 
 type peerData struct {
index d0151fda5b9eb743cf07cf3ee68d980d9a18be86..3d0397aa1617e3e1468bb657fd11038692578544 100644 (file)
--- a/client.go
+++ b/client.go
@@ -19,12 +19,6 @@ import (
        "strings"
        "time"
 
-       "github.com/davecgh/go-spew/spew"
-       "github.com/dustin/go-humanize"
-       gbtree "github.com/google/btree"
-       "github.com/pion/datachannel"
-       "golang.org/x/time/rate"
-
        "github.com/anacrolix/chansync"
        "github.com/anacrolix/chansync/events"
        "github.com/anacrolix/dht/v2"
@@ -37,6 +31,11 @@ import (
        "github.com/anacrolix/missinggo/v2/bitmap"
        "github.com/anacrolix/missinggo/v2/pproffd"
        "github.com/anacrolix/sync"
+       "github.com/davecgh/go-spew/spew"
+       "github.com/dustin/go-humanize"
+       gbtree "github.com/google/btree"
+       "github.com/pion/datachannel"
+       "golang.org/x/time/rate"
 
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/internal/limiter"
index 8f4440c44c15e96391c030bf3a75590a4b086c27..5169a1f5ca418ebd96c16f66302b3467ecb27be1 100644 (file)
@@ -1,11 +1,13 @@
 package main
 
 import (
+       "os"
+
        "github.com/anacrolix/bargle"
        "github.com/anacrolix/tagflag"
+
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/metainfo"
-       "os"
 )
 
 var builtinAnnounceList = [][]string{
index cd487edb36ac4c941feeb0b0546adc78e19b548d..1f2fbc89ff7c1ae57004afb595908c07509d9a13 100644 (file)
@@ -16,14 +16,15 @@ import (
 
        "github.com/anacrolix/log"
        "github.com/anacrolix/tagflag"
+       "github.com/davecgh/go-spew/spew"
+       "github.com/dustin/go-humanize"
+       "golang.org/x/time/rate"
+
        "github.com/anacrolix/torrent"
        "github.com/anacrolix/torrent/iplist"
        "github.com/anacrolix/torrent/metainfo"
        pp "github.com/anacrolix/torrent/peer_protocol"
        "github.com/anacrolix/torrent/storage"
-       "github.com/davecgh/go-spew/spew"
-       "github.com/dustin/go-humanize"
-       "golang.org/x/time/rate"
 )
 
 func torrentBar(t *torrent.Torrent, pieceStates bool) {
index 58a266636741de9c9654d8ddb447fee71e879b4d..2c1081bbb1bb338c53d8aa15fe2c281fa5c2e2f5 100644 (file)
@@ -11,6 +11,10 @@ import (
        "os"
        "time"
 
+       "github.com/anacrolix/bargle"
+       "github.com/anacrolix/envpprof"
+       "github.com/anacrolix/log"
+       xprometheus "github.com/anacrolix/missinggo/v2/prometheus"
        "github.com/davecgh/go-spew/spew"
        "github.com/prometheus/client_golang/prometheus"
        "github.com/prometheus/client_golang/prometheus/promhttp"
@@ -18,11 +22,6 @@ import (
        "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
        "go.opentelemetry.io/otel/sdk/trace"
 
-       "github.com/anacrolix/bargle"
-       "github.com/anacrolix/envpprof"
-       "github.com/anacrolix/log"
-       xprometheus "github.com/anacrolix/missinggo/v2/prometheus"
-
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/version"
 )
index f2a09ced295a3cd4df257b0c198d99e80c1b10d9..929cb45dc9cd00df89aff20514d07bcc36f49fe8 100644 (file)
@@ -4,13 +4,14 @@ import (
        "encoding/hex"
        "encoding/json"
        "fmt"
+       "net/http"
        "os"
        "strings"
-       "net/http"
 
        "github.com/anacrolix/bargle"
-       "github.com/anacrolix/torrent/metainfo"
        "github.com/bradfitz/iter"
+
+       "github.com/anacrolix/torrent/metainfo"
 )
 
 type pprintMetainfoFlags struct {
index 56b9c70cb8a8e46f14cf6b43222c0f61c899c6a0..ce5fc06c89e70b8cb04e419cd49b7b3e108b7838 100644 (file)
@@ -5,10 +5,10 @@ import (
        "fmt"
        "net/url"
 
-       "github.com/anacrolix/torrent/tracker/udp"
        "github.com/davecgh/go-spew/spew"
 
        "github.com/anacrolix/torrent"
+       "github.com/anacrolix/torrent/tracker/udp"
 )
 
 type scrapeCfg struct {
index 0d3487d4355f407a4827802841a2a030e54abae2..bdb1559473d463139d71342742d2f0012176bf94 100644 (file)
@@ -7,6 +7,7 @@ import (
 
        "github.com/anacrolix/bargle"
        "github.com/anacrolix/log"
+
        "github.com/anacrolix/torrent"
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/metainfo"
index 1189872ee9e26435c60259b1fe22a7ff767ebd8a..6f9f68277b1c46c9b98db2e6ea29e8885f210f69 100644 (file)
--- a/config.go
+++ b/config.go
@@ -11,12 +11,12 @@ import (
        "github.com/anacrolix/dht/v2/krpc"
        "github.com/anacrolix/log"
        "github.com/anacrolix/missinggo/v2"
-       "github.com/anacrolix/torrent/version"
        "golang.org/x/time/rate"
 
        "github.com/anacrolix/torrent/iplist"
        "github.com/anacrolix/torrent/mse"
        "github.com/anacrolix/torrent/storage"
+       "github.com/anacrolix/torrent/version"
 )
 
 // Probably not safe to modify this after it's given to a Client.
index 147254d02ca6462904ae0c9a4233af204eba5775..7c275c276fa785360b7d9a60c08a04a3a1ec29f4 100644 (file)
@@ -7,6 +7,7 @@ import (
        "github.com/anacrolix/fuse"
        "github.com/anacrolix/fuse/fs"
        "github.com/anacrolix/missinggo/v2"
+
        "github.com/anacrolix/torrent"
 )
 
diff --git a/misc.go b/misc.go
index 6b638a280572af6df6916757f5c64f687af37d72..99345fe70f5fdf26f8c00494ed31055a0df1faff 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -6,12 +6,12 @@ import (
 
        "github.com/RoaringBitmap/roaring"
        "github.com/anacrolix/missinggo/v2"
-       "github.com/anacrolix/torrent/types"
-       "github.com/anacrolix/torrent/types/infohash"
        "golang.org/x/time/rate"
 
        "github.com/anacrolix/torrent/metainfo"
        pp "github.com/anacrolix/torrent/peer_protocol"
+       "github.com/anacrolix/torrent/types"
+       "github.com/anacrolix/torrent/types/infohash"
 )
 
 type (
index d9970be4be1efb5a8bb89c6eab4d3ffa13372e49..de74956bb8287ea59e9e28bd953f62dd06804fd8 100644 (file)
@@ -5,8 +5,9 @@ import (
        "io"
        "sync"
 
-       "github.com/anacrolix/torrent/segments"
        "github.com/edsrzf/mmap-go"
+
+       "github.com/anacrolix/torrent/segments"
 )
 
 type MMapSpan struct {
index 25f2e339ad2c0d4a283b350c88147172a9650351..7d10a26d9d386914435cce1846df18ce5faec899 100644 (file)
@@ -9,6 +9,7 @@ import (
        "sync"
 
        "github.com/alexflint/go-arg"
+
        "github.com/anacrolix/torrent/mse"
 )
 
index 685ac62c5fa723b39a8166b165d7c6b88a25062f..3be15c5b0d67836ed99b68d5709ed951dac27a29 100644 (file)
@@ -2,8 +2,9 @@ package torrent
 
 import (
        "github.com/anacrolix/generics"
-       "github.com/anacrolix/torrent/typed-roaring"
        list "github.com/bahlo/generic-list-go"
+
+       "github.com/anacrolix/torrent/typed-roaring"
 )
 
 type orderedBitmap[T typedRoaring.BitConstraint] struct {
index 1b9cf978205506a598fbfbad1812a31cf5cafb40..b854ffd0ff5f096ab486b81a3353269eb0042794 100644 (file)
@@ -2,6 +2,7 @@ package torrent
 
 import (
        "github.com/RoaringBitmap/roaring"
+
        "github.com/anacrolix/torrent/metainfo"
 )
 
index bcf05f3606f6dd253797d3b8756ff353ad001e73..784aaa59257b6fcc15c3dc6bf997251ce5f2cff2 100644 (file)
@@ -2,6 +2,7 @@ package peer_protocol
 
 import (
        "github.com/anacrolix/dht/v2/krpc"
+
        "github.com/anacrolix/torrent/bencode"
 )
 
index 4d978f07f58d12ae2a3d39f4e78075fdb17547ba..7e872d2c21aeb5a94f3013f122af47dfd8467588 100644 (file)
@@ -20,13 +20,14 @@ import (
        "github.com/anacrolix/missinggo/iter"
        "github.com/anacrolix/missinggo/v2/bitmap"
        "github.com/anacrolix/multiless"
+       "golang.org/x/time/rate"
+
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/metainfo"
        "github.com/anacrolix/torrent/mse"
        pp "github.com/anacrolix/torrent/peer_protocol"
        request_strategy "github.com/anacrolix/torrent/request-strategy"
        "github.com/anacrolix/torrent/typed-roaring"
-       "golang.org/x/time/rate"
 )
 
 type PeerSource string
diff --git a/pex.go b/pex.go
index f274ac1547432f7fc0bfa25bbc036218e16dd427..7fa0be887d4c83e785cb60181cf4d561cdf0c720 100644 (file)
--- a/pex.go
+++ b/pex.go
@@ -6,6 +6,7 @@ import (
        "time"
 
        "github.com/anacrolix/dht/v2/krpc"
+
        pp "github.com/anacrolix/torrent/peer_protocol"
 )
 
index 3ef3576fddec3dacc286ef80bd3def04e97cdd8e..e08b2609690e385663c4df716d22d05ab3c7808b 100644 (file)
--- a/piece.go
+++ b/piece.go
@@ -6,6 +6,7 @@ import (
 
        "github.com/anacrolix/chansync"
        "github.com/anacrolix/missinggo/v2/bitmap"
+
        "github.com/anacrolix/torrent/metainfo"
        pp "github.com/anacrolix/torrent/peer_protocol"
        "github.com/anacrolix/torrent/storage"
index 8bdfe188d159ab90d1d0fbd7c4a7635e90845080..3b7284b2f44c2bd8e5670c3431d707a7f80d5b76 100644 (file)
@@ -5,8 +5,8 @@ import (
        "expvar"
 
        "github.com/anacrolix/multiless"
-       "github.com/anacrolix/torrent/metainfo"
 
+       "github.com/anacrolix/torrent/metainfo"
        "github.com/anacrolix/torrent/types"
 )
 
index a2ecbe4052909916dbd6388123c3ee7f386d71b4..47b3a1fe70d305a22449ba93faf18cce9496a296 100644 (file)
@@ -11,10 +11,10 @@ import (
 
        "github.com/anacrolix/log"
        "github.com/anacrolix/multiless"
-       "github.com/anacrolix/torrent/typed-roaring"
        "github.com/lispad/go-generics-tools/binheap"
 
        "github.com/anacrolix/torrent/request-strategy"
+       "github.com/anacrolix/torrent/typed-roaring"
 )
 
 func (t *Torrent) requestStrategyPieceOrderState(i int) request_strategy.PieceRequestOrderState {
index 15b4d44b4ed3bcabbe46671f3c43d2436d6c7126..96cc2acfdbc717e2be5e0a0284eb86884d498b71 100644 (file)
@@ -6,6 +6,7 @@ import (
        "net/netip"
 
        "github.com/anacrolix/generics"
+
        "github.com/anacrolix/torrent/smartban"
 )
 
index aee11df8afce78ff78287a3cb38c299f22a238dd..127cd29afecb1cecd9f9ffe0dd08f579fcb54136 100644 (file)
--- a/socket.go
+++ b/socket.go
@@ -8,8 +8,9 @@ import (
        "github.com/anacrolix/log"
        "github.com/anacrolix/missinggo/perf"
        "github.com/anacrolix/missinggo/v2"
-       "github.com/anacrolix/torrent/dialer"
        "github.com/pkg/errors"
+
+       "github.com/anacrolix/torrent/dialer"
 )
 
 type Listener interface {
index a03b767506a568940e5c2c3d0576d2f92e80dd75..3923e8e6aa4f0149bc4365ad1feb948f6912190c 100644 (file)
@@ -6,6 +6,7 @@ import (
        "net/http"
 
        "github.com/anacrolix/log"
+
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/metainfo"
 )
index d07dc7e9156d4a0b274b6f9e0dbf76ee66940e1c..b873964787886d4e62169deecc2141bfc3ef5473 100644 (file)
@@ -7,10 +7,10 @@ import (
        "path/filepath"
 
        "github.com/anacrolix/missinggo/v2"
-       "github.com/anacrolix/torrent/common"
-       "github.com/anacrolix/torrent/segments"
 
+       "github.com/anacrolix/torrent/common"
        "github.com/anacrolix/torrent/metainfo"
+       "github.com/anacrolix/torrent/segments"
 )
 
 // File-based storage for torrents, that isn't yet bound to a particular torrent.
index eb2e1c3d9d47ec29dde5ba22a1d7a9f8f97eda7a..662b1e98c97e3c8cc07e69e8e272d464d8562735 100644 (file)
@@ -13,6 +13,7 @@ import (
 
        "crawshaw.io/sqlite"
        "crawshaw.io/sqlite/sqlitex"
+
        "github.com/anacrolix/torrent/metainfo"
 )
 
index e800e6a90b3eb83897eff56296e7b06bb23756c3..71b27afccf6d217eb1f6ad9a8a0cc0b1be369956 100644 (file)
@@ -6,9 +6,10 @@ import (
        "sync"
        "testing"
 
+       qt "github.com/frankban/quicktest"
+
        "github.com/anacrolix/torrent/metainfo"
        "github.com/anacrolix/torrent/storage"
-       qt "github.com/frankban/quicktest"
 )
 
 const (
index 5a4fda08803e21cdfd919775c766225d137e647a..a3907e1d2f4ed6a193c1a6cdedd85b9dbabf6e58 100644 (file)
@@ -5,6 +5,7 @@ import (
        "os"
 
        "github.com/anacrolix/missinggo/v2"
+
        "github.com/anacrolix/torrent/metainfo"
 )
 
index 49da418297846798525b7a7ab1505518f64415fe..eac152d6605be04daa6007dba76ca9a354db3c19 100644 (file)
@@ -9,13 +9,14 @@ import (
        "testing/iotest"
 
        "github.com/anacrolix/missinggo/v2/bitmap"
-       "github.com/anacrolix/torrent"
-       "github.com/anacrolix/torrent/internal/testutil"
-       "github.com/anacrolix/torrent/storage"
        "github.com/frankban/quicktest"
        "github.com/stretchr/testify/assert"
        "github.com/stretchr/testify/require"
        "golang.org/x/time/rate"
+
+       "github.com/anacrolix/torrent"
+       "github.com/anacrolix/torrent/internal/testutil"
+       "github.com/anacrolix/torrent/storage"
 )
 
 type LeecherStorageTestCase struct {
index 684b2eb75c8403d2e6759dce985a4a08eae6f970..1df8abc0d34b09333906c142e3aecc7586eada1e 100644 (file)
@@ -5,6 +5,7 @@ import (
        "time"
 
        "github.com/anacrolix/log"
+
        pp "github.com/anacrolix/torrent/peer_protocol"
 )
 
index 7d32b957c88a42a40b8dd73bcc7f740fea584500..71b2fc9f46bd7c43094a69ae24b8366d835df5a8 100644 (file)
@@ -30,8 +30,6 @@ import (
        "github.com/anacrolix/missinggo/v2/pubsub"
        "github.com/anacrolix/multiless"
        "github.com/anacrolix/sync"
-       request_strategy "github.com/anacrolix/torrent/request-strategy"
-       typedRoaring "github.com/anacrolix/torrent/typed-roaring"
        "github.com/davecgh/go-spew/spew"
        "github.com/pion/datachannel"
 
@@ -39,9 +37,11 @@ import (
        "github.com/anacrolix/torrent/common"
        "github.com/anacrolix/torrent/metainfo"
        pp "github.com/anacrolix/torrent/peer_protocol"
+       request_strategy "github.com/anacrolix/torrent/request-strategy"
        "github.com/anacrolix/torrent/segments"
        "github.com/anacrolix/torrent/storage"
        "github.com/anacrolix/torrent/tracker"
+       typedRoaring "github.com/anacrolix/torrent/typed-roaring"
        "github.com/anacrolix/torrent/webseed"
        "github.com/anacrolix/torrent/webtorrent"
 )
index 2558da70488d25f2d6112a9af7427465a2e12c1e..1aaf25611964cb26f5b2c032ea106af86d29c33c 100644 (file)
@@ -6,6 +6,7 @@ import (
        "net/url"
 
        "github.com/anacrolix/log"
+
        trHttp "github.com/anacrolix/torrent/tracker/http"
        "github.com/anacrolix/torrent/tracker/udp"
 )
index cd18f65ab30b58a5c9ed128af135f0e72de23937..7b2a32d1dcedce86d323e57592c96126cee91920 100644 (file)
@@ -29,7 +29,7 @@ func NewClient(url_ *url.URL, opts NewClientOpts) Client {
                hc: &http.Client{
                        Transport: &http.Transport{
                                DialContext: opts.DialContext,
-                               Proxy: opts.Proxy,
+                               Proxy:       opts.Proxy,
                                TLSClientConfig: &tls.Config{
                                        InsecureSkipVerify: true,
                                        ServerName:         opts.ServerName,
index deee4ded2e20c1d78b3703a302f7dfde86446f0e..72a95c380bee959820ace7011c65ae903ee74a20 100644 (file)
@@ -14,6 +14,7 @@ import (
        "strings"
 
        "github.com/anacrolix/missinggo/httptoo"
+
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/tracker/shared"
        "github.com/anacrolix/torrent/tracker/udp"
index 0a54a1b3003a094d640dde936c736168f5bbb4c2..aa6d78d4e469b795dc74670beb8b723e957ad056 100644 (file)
@@ -4,6 +4,7 @@ import (
        "fmt"
 
        "github.com/anacrolix/dht/v2/krpc"
+
        "github.com/anacrolix/torrent/bencode"
 )
 
index a9721c77171511d34fc9c9c44fad51d7a973102e..122278b62bd442f0d8bf847f9143083a02af48d9 100644 (file)
@@ -11,6 +11,7 @@ import (
 
        "github.com/anacrolix/dht/v2/krpc"
        "github.com/anacrolix/log"
+
        trHttp "github.com/anacrolix/torrent/tracker/http"
        "github.com/anacrolix/torrent/tracker/shared"
        "github.com/anacrolix/torrent/tracker/udp"
index f500fc3f2171afb6bde63e8f4776769e54afc21c..f379d8574630438ed007745b43996908322f9a81 100644 (file)
@@ -5,7 +5,6 @@ import (
        "net"
 
        "github.com/anacrolix/log"
-
        "github.com/anacrolix/missinggo/v2"
 )
 
index 94d22e3a54fb0b0351322371e5417d5e7673d44d..f617aee796f4f337201292f5d48c9e923ea7b80d 100644 (file)
@@ -10,8 +10,9 @@ import (
 
        "github.com/anacrolix/log"
        "github.com/anacrolix/missinggo/v2"
-       "github.com/anacrolix/torrent/metainfo"
        "github.com/fsnotify/fsnotify"
+
+       "github.com/anacrolix/torrent/metainfo"
 )
 
 type Change uint
index aff1e0a3c5675017b7ff819123aea8ce705d44e2..ca4f80fb9f19d08d7f4e9adf66e9826d75b0d32b 100644 (file)
--- a/webrtc.go
+++ b/webrtc.go
@@ -1,16 +1,17 @@
 package torrent
 
 import (
-       "go.opentelemetry.io/otel"
-       "go.opentelemetry.io/otel/attribute"
-       "go.opentelemetry.io/otel/trace"
        "net"
        "strconv"
        "time"
 
-       "github.com/anacrolix/torrent/webtorrent"
        "github.com/pion/datachannel"
        "github.com/pion/webrtc/v3"
+       "go.opentelemetry.io/otel"
+       "go.opentelemetry.io/otel/attribute"
+       "go.opentelemetry.io/otel/trace"
+
+       "github.com/anacrolix/torrent/webtorrent"
 )
 
 const webrtcNetwork = "webrtc"
index 4011009465ebda2225637e5cc32ff80590a77dde..52e33c721217b51096a5d6e99c6f179233c5e23c 100644 (file)
@@ -10,6 +10,7 @@ import (
 
        "github.com/RoaringBitmap/roaring"
        "github.com/anacrolix/log"
+
        "github.com/anacrolix/torrent/metainfo"
        pp "github.com/anacrolix/torrent/peer_protocol"
        "github.com/anacrolix/torrent/webseed"
index a86be17aea2df82d32164148b99f11a2342136d3..ac42b8a427c3d6fe369f159e125611ffda434aa8 100644 (file)
@@ -11,6 +11,7 @@ import (
        "strings"
 
        "github.com/RoaringBitmap/roaring"
+
        "github.com/anacrolix/torrent/common"
        "github.com/anacrolix/torrent/metainfo"
        "github.com/anacrolix/torrent/segments"
index 195c06b033dee4c1bf743b64df37a6ad38ea859f..64885bf4d1fea79fe35803b6a76a9b14bb55f705 100644 (file)
@@ -5,17 +5,17 @@ import (
        "crypto/rand"
        "encoding/json"
        "fmt"
-       "github.com/anacrolix/generics"
-       "go.opentelemetry.io/otel/trace"
        "sync"
        "time"
 
+       "github.com/anacrolix/generics"
        "github.com/anacrolix/log"
-
-       "github.com/anacrolix/torrent/tracker"
        "github.com/gorilla/websocket"
        "github.com/pion/datachannel"
        "github.com/pion/webrtc/v3"
+       "go.opentelemetry.io/otel/trace"
+
+       "github.com/anacrolix/torrent/tracker"
 )
 
 type TrackerClientStats struct {
index d60fb7a7028e5bbd28821b567b1c828d83ebaefb..610301db2c8a71cef7007d69d7287715c5174f67 100644 (file)
@@ -4,6 +4,10 @@ import (
        "context"
        "expvar"
        "fmt"
+       "io"
+       "sync"
+       "time"
+
        "github.com/anacrolix/log"
        "github.com/anacrolix/missinggo/v2/pproffd"
        "github.com/pion/datachannel"
@@ -12,9 +16,6 @@ import (
        "go.opentelemetry.io/otel/attribute"
        "go.opentelemetry.io/otel/codes"
        "go.opentelemetry.io/otel/trace"
-       "io"
-       "sync"
-       "time"
 )
 
 const (
index 4ed5a5999f565c974b8a0bea32f3a2abb67a1ee5..431863a064bd0c9ee44a3a630659d25c0f79ba4e 100644 (file)
@@ -8,12 +8,12 @@ import (
        "sync"
 
        "github.com/anacrolix/log"
-       "github.com/anacrolix/torrent/tracker/http"
        "github.com/gorilla/websocket"
+       "github.com/pion/datachannel"
 
        "github.com/anacrolix/torrent/tracker"
+       "github.com/anacrolix/torrent/tracker/http"
        "github.com/anacrolix/torrent/webtorrent"
-       "github.com/pion/datachannel"
 )
 
 type websocketTrackerStatus struct {