]> Sergey Matveev's repositories - btrtrc.git/commitdiff
gorond
authorMatt Joiner <anacrolix@gmail.com>
Thu, 27 Jun 2024 04:35:46 +0000 (14:35 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 27 Jun 2024 04:35:46 +0000 (14:35 +1000)
issue-949_test.go
storage/piece-completion.go
tests/issue-952/issue-952_test.go
tests/peers-bootstrapping/main.go

index f04bd5574d3f7ebd8dc69744573aa1058a1b357c..89b459294c5ce451ad26c84c414577b5ecb7cbee 100644 (file)
@@ -1,9 +1,11 @@
 package torrent
 
 import (
-       "github.com/anacrolix/torrent/metainfo"
-       qt "github.com/frankban/quicktest"
        "testing"
+
+       qt "github.com/frankban/quicktest"
+
+       "github.com/anacrolix/torrent/metainfo"
 )
 
 func TestIssue949LastPieceZeroPadding(t *testing.T) {
index edc1e086437584d2d456de0e29cc0ceb5b224569..1260aba0b5c8ac9fcde886c42871a401b1c5a2e3 100644 (file)
@@ -1,9 +1,10 @@
 package storage
 
 import (
-       "github.com/anacrolix/log"
        "os"
 
+       "github.com/anacrolix/log"
+
        "github.com/anacrolix/torrent/metainfo"
 )
 
index 8cf154119c2cd33555597b3124b9a4f14e5001a0..822064770480fc8807f51234cb65d29e39e1f12a 100644 (file)
@@ -1,11 +1,13 @@
 package issue_952
 
 import (
+       "testing"
+
+       qt "github.com/frankban/quicktest"
+
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/metainfo"
        "github.com/anacrolix/torrent/types/infohash"
-       qt "github.com/frankban/quicktest"
-       "testing"
 )
 
 type scrapeResponse struct {
index 14cda31fe9f0803cc12cadaf31a0ea959a766004..4114c5c385655a1309af1e29cd8996517d18743c 100644 (file)
@@ -3,19 +3,21 @@ package main
 import (
        "crypto/rand"
        "fmt"
+       "io"
+       "net/http"
+       "os"
+       "path/filepath"
+       "time"
+
        _ "github.com/anacrolix/envpprof"
        "github.com/anacrolix/log"
        "github.com/anacrolix/sync"
+       "github.com/dustin/go-humanize"
+       "golang.org/x/exp/slog"
+
        "github.com/anacrolix/torrent"
        "github.com/anacrolix/torrent/bencode"
        "github.com/anacrolix/torrent/metainfo"
-       "github.com/dustin/go-humanize"
-       "golang.org/x/exp/slog"
-       "io"
-       "net/http"
-       "os"
-       "path/filepath"
-       "time"
 )
 
 func assertNil(x any) {