From: Matt Joiner Date: Thu, 24 Apr 2025 13:08:59 +0000 (+1000) Subject: gorond X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3fedaf2077b7777eb1fbe3da162be6a8c8c6d1af;p=btrtrc.git gorond --- diff --git a/conn-stats.go b/conn-stats.go index 394ebfdf..c574a4d0 100644 --- a/conn-stats.go +++ b/conn-stats.go @@ -1,8 +1,9 @@ package torrent import ( - pp "github.com/anacrolix/torrent/peer_protocol" "io" + + pp "github.com/anacrolix/torrent/peer_protocol" ) // Various connection-level metrics. At the Torrent level these are aggregates. Chunks are messages diff --git a/issue97_test.go b/issue97_test.go index 72fc3428..8453fad1 100644 --- a/issue97_test.go +++ b/issue97_test.go @@ -1,13 +1,13 @@ package torrent import ( - "github.com/anacrolix/torrent/metainfo" - "github.com/anacrolix/torrent/storage" "testing" "github.com/stretchr/testify/require" "github.com/anacrolix/torrent/internal/testutil" + "github.com/anacrolix/torrent/metainfo" + "github.com/anacrolix/torrent/storage" ) func TestHashPieceAfterStorageClosed(t *testing.T) { diff --git a/torrent-piece-request-order.go b/torrent-piece-request-order.go index 02044f91..ac2b8cc1 100644 --- a/torrent-piece-request-order.go +++ b/torrent-piece-request-order.go @@ -2,9 +2,9 @@ package torrent import ( g "github.com/anacrolix/generics" - "github.com/anacrolix/torrent/storage" request_strategy "github.com/anacrolix/torrent/request-strategy" + "github.com/anacrolix/torrent/storage" ) func (t *Torrent) updatePieceRequestOrderPiece(pieceIndex int) { diff --git a/types/types.go b/types/types.go index 63806705..977f1f55 100644 --- a/types/types.go +++ b/types/types.go @@ -4,6 +4,7 @@ package types import ( "fmt" + pp "github.com/anacrolix/torrent/peer_protocol" )