sortimports

This commit is contained in:
Matt Joiner 2017-12-01 18:12:29 +11:00
parent 10f7a8124a
commit 4190856b6c
8 changed files with 16 additions and 15 deletions

View File

@ -9,6 +9,7 @@ import (
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/tagflag"
"github.com/anacrolix/torrent"
"github.com/anacrolix/torrent/bencode"
)

View 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 {

View File

@ -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{

View 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"
)

View 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 {

View 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

View File

@ -11,7 +11,6 @@ import (
"testing"
_ "github.com/anacrolix/envpprof"
"github.com/bradfitz/iter"
"github.com/stretchr/testify/require"
)

View 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 {