]> Sergey Matveev's repositories - btrtrc.git/commitdiff
sortimports
authorMatt Joiner <anacrolix@gmail.com>
Fri, 1 Dec 2017 07:12:29 +0000 (18:12 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 1 Dec 2017 07:12:29 +0000 (18:12 +1100)
cmd/magnet-metainfo/main.go
cmd/torrent-metainfo-pprint/main.go
config.go
connection.go
fs/file_handle.go
handshake.go
mse/mse_test.go
storage/bolt_piece.go

index b1d41aed4a4132e59cdfcb7c06d3daafeb1e8a0c..c943bea80f6cc7886b353424663a977db41c29a2 100644 (file)
@@ -9,6 +9,7 @@ import (
 
        _ "github.com/anacrolix/envpprof"
        "github.com/anacrolix/tagflag"
+
        "github.com/anacrolix/torrent"
        "github.com/anacrolix/torrent/bencode"
 )
index 02865abce93f33f4978fa1027a57f6ee9330961e..7320315aa4f3cf01505cfba9e9ca93bec7c5a560 100644 (file)
@@ -9,8 +9,9 @@ import (
        "os"
 
        "github.com/anacrolix/tagflag"
-       "github.com/anacrolix/torrent/metainfo"
        "github.com/bradfitz/iter"
+
+       "github.com/anacrolix/torrent/metainfo"
 )
 
 var flags struct {
index aec08d7cafddf551b2f824aa64065711b180e4fb..08b35be4f8423737a4020c07b70bf76f1721ff6c 100644 (file)
--- a/config.go
+++ b/config.go
@@ -1,16 +1,16 @@
 package torrent
 
 import (
+       "crypto/tls"
+       "net"
+       "net/http"
+       "time"
+
        "github.com/anacrolix/dht"
        "golang.org/x/time/rate"
 
        "github.com/anacrolix/torrent/iplist"
        "github.com/anacrolix/torrent/storage"
-
-       "crypto/tls"
-       "net"
-       "net/http"
-       "time"
 )
 
 var DefaultHTTPClient = &http.Client{
index c52328a0e6a68ef98b8f16d1aca9c8c26e5d4355..e60ce794bf4f8612346e56392d14cb3c0c56b1ce 100644 (file)
@@ -14,14 +14,13 @@ import (
        "sync"
        "time"
 
-       "github.com/anacrolix/torrent/mse"
-
        "github.com/anacrolix/missinggo"
        "github.com/anacrolix/missinggo/bitmap"
        "github.com/anacrolix/missinggo/iter"
        "github.com/anacrolix/missinggo/prioritybitmap"
 
        "github.com/anacrolix/torrent/bencode"
+       "github.com/anacrolix/torrent/mse"
        pp "github.com/anacrolix/torrent/peer_protocol"
 )
 
index f65400c6c1c6d593b93ff786d4e7ed38afbcc083..3405cce7f1c2c5bf5f25b4c228b7f4f251b616d4 100644 (file)
@@ -4,11 +4,11 @@ import (
        "context"
        "io"
 
-       "github.com/anacrolix/missinggo"
-       "github.com/anacrolix/torrent"
-
        "bazil.org/fuse"
        "bazil.org/fuse/fs"
+       "github.com/anacrolix/missinggo"
+
+       "github.com/anacrolix/torrent"
 )
 
 type fileHandle struct {
index 0afc4a861716aa50ab638ef50928afe4b536e537..0ffea147afdea506a9f9ae17466215eafb44ab57 100644 (file)
@@ -8,11 +8,11 @@ import (
        "net"
        "time"
 
-       pp "github.com/anacrolix/torrent/peer_protocol"
-
        "github.com/anacrolix/missinggo"
+
        "github.com/anacrolix/torrent/metainfo"
        "github.com/anacrolix/torrent/mse"
+       pp "github.com/anacrolix/torrent/peer_protocol"
 )
 
 type ExtensionBit uint
index a779638633f72dc8a37a7ef04b719781d0d827ac..b754e2b44a65317d3be922a885ab6c1dee9b5e7b 100644 (file)
@@ -11,7 +11,6 @@ import (
        "testing"
 
        _ "github.com/anacrolix/envpprof"
-
        "github.com/bradfitz/iter"
        "github.com/stretchr/testify/require"
 )
index a9e22bba3bbabc61d15533fce38d78104912cff4..35120e0e1f52402eb2a295dd5ea9925ec40f08ce 100644 (file)
@@ -4,8 +4,9 @@ import (
        "encoding/binary"
 
        "github.com/anacrolix/missinggo/x"
-       "github.com/anacrolix/torrent/metainfo"
        "github.com/boltdb/bolt"
+
+       "github.com/anacrolix/torrent/metainfo"
 )
 
 type boltDBPiece struct {