From 3fedaf2077b7777eb1fbe3da162be6a8c8c6d1af Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 24 Apr 2025 23:08:59 +1000 Subject: [PATCH] gorond --- conn-stats.go | 3 ++- issue97_test.go | 4 ++-- torrent-piece-request-order.go | 2 +- types/types.go | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) 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" ) -- 2.48.1