From fc5deb9bc4b75a3264957199f032d226756ed5dd Mon Sep 17 00:00:00 2001
From: Matt Joiner <anacrolix@gmail.com>
Date: Sat, 28 Sep 2024 22:20:25 +1000
Subject: [PATCH] gorond

---
 cmd/torrent/main.go        | 2 +-
 internal/ctxrw/ctxrw.go    | 3 ++-
 metainfo/info_test.go      | 2 +-
 ordered-bitmap.go          | 3 ++-
 peer_protocol/handshake.go | 5 +++--
 request-strategy/peer.go   | 3 ++-
 tracker/udp/client.go      | 2 +-
 7 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go
index a15351b9..3f5b82cc 100644
--- a/cmd/torrent/main.go
+++ b/cmd/torrent/main.go
@@ -5,7 +5,6 @@ import (
 	"context"
 	"encoding/json"
 	"fmt"
-	app "github.com/anacrolix/gostdapp"
 	"io"
 	stdLog "log"
 	"net/http"
@@ -14,6 +13,7 @@ import (
 
 	"github.com/anacrolix/bargle"
 	"github.com/anacrolix/envpprof"
+	app "github.com/anacrolix/gostdapp"
 	"github.com/anacrolix/log"
 	xprometheus "github.com/anacrolix/missinggo/v2/prometheus"
 	"github.com/davecgh/go-spew/spew"
diff --git a/internal/ctxrw/ctxrw.go b/internal/ctxrw/ctxrw.go
index 8ca19310..9fc0f5f4 100644
--- a/internal/ctxrw/ctxrw.go
+++ b/internal/ctxrw/ctxrw.go
@@ -2,8 +2,9 @@ package ctxrw
 
 import (
 	"context"
-	g "github.com/anacrolix/generics"
 	"io"
+
+	g "github.com/anacrolix/generics"
 )
 
 type contextedReader struct {
diff --git a/metainfo/info_test.go b/metainfo/info_test.go
index 9fd3bded..5949c89e 100644
--- a/metainfo/info_test.go
+++ b/metainfo/info_test.go
@@ -1,9 +1,9 @@
 package metainfo
 
 import (
-	g "github.com/anacrolix/generics"
 	"testing"
 
+	g "github.com/anacrolix/generics"
 	"github.com/stretchr/testify/assert"
 
 	"github.com/anacrolix/torrent/bencode"
diff --git a/ordered-bitmap.go b/ordered-bitmap.go
index f1d867ef..2163a375 100644
--- a/ordered-bitmap.go
+++ b/ordered-bitmap.go
@@ -1,9 +1,10 @@
 package torrent
 
 import (
+	"iter"
+
 	g "github.com/anacrolix/generics"
 	list "github.com/bahlo/generic-list-go"
-	"iter"
 
 	"github.com/anacrolix/torrent/typed-roaring"
 )
diff --git a/peer_protocol/handshake.go b/peer_protocol/handshake.go
index 162047f3..d220abf4 100644
--- a/peer_protocol/handshake.go
+++ b/peer_protocol/handshake.go
@@ -4,13 +4,14 @@ import (
 	"context"
 	"encoding/hex"
 	"fmt"
-	"github.com/anacrolix/missinggo/v2/panicif"
-	"github.com/anacrolix/torrent/internal/ctxrw"
 	"io"
 	"math/bits"
 	"strings"
 	"unsafe"
 
+	"github.com/anacrolix/missinggo/v2/panicif"
+
+	"github.com/anacrolix/torrent/internal/ctxrw"
 	"github.com/anacrolix/torrent/metainfo"
 )
 
diff --git a/request-strategy/peer.go b/request-strategy/peer.go
index a922feb3..1eea0329 100644
--- a/request-strategy/peer.go
+++ b/request-strategy/peer.go
@@ -1,8 +1,9 @@
 package requestStrategy
 
 import (
-	typedRoaring "github.com/anacrolix/torrent/typed-roaring"
 	"iter"
+
+	typedRoaring "github.com/anacrolix/torrent/typed-roaring"
 )
 
 type PeerRequestState struct {
diff --git a/tracker/udp/client.go b/tracker/udp/client.go
index 4664643d..44d05137 100644
--- a/tracker/udp/client.go
+++ b/tracker/udp/client.go
@@ -5,12 +5,12 @@ import (
 	"context"
 	"encoding/binary"
 	"fmt"
-	"github.com/protolambda/ctxlock"
 	"io"
 	"net"
 	"time"
 
 	"github.com/anacrolix/dht/v2/krpc"
+	"github.com/protolambda/ctxlock"
 )
 
 // Client interacts with UDP trackers via its Writer and Dispatcher. It has no knowledge of
-- 
2.51.0