sortimports

This commit is contained in:
Matt Joiner 2018-07-07 11:36:58 +10:00
parent 316640f921
commit fad06c7ddf
10 changed files with 10 additions and 12 deletions

View File

@ -2,6 +2,7 @@ package torrent
import (
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/torrent/tracker"
)

View File

@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"hash/crc32"
"net"
)

View File

@ -14,12 +14,11 @@ import (
"strings"
"time"
"github.com/anacrolix/missinggo/perf"
"github.com/anacrolix/dht"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/log"
"github.com/anacrolix/missinggo"
"github.com/anacrolix/missinggo/perf"
"github.com/anacrolix/missinggo/pproffd"
"github.com/anacrolix/missinggo/pubsub"
"github.com/anacrolix/missinggo/slices"

View File

@ -7,11 +7,11 @@ import (
"net/url"
"time"
"golang.org/x/time/rate"
"github.com/anacrolix/dht"
"github.com/anacrolix/missinggo"
"github.com/anacrolix/missinggo/expect"
"golang.org/x/time/rate"
"github.com/anacrolix/torrent/iplist"
"github.com/anacrolix/torrent/storage"
)

View File

@ -16,7 +16,6 @@ import (
"github.com/anacrolix/dht"
"github.com/anacrolix/log"
"github.com/anacrolix/missinggo"
"github.com/anacrolix/missinggo/bitmap"
"github.com/anacrolix/missinggo/iter"

View File

@ -1,9 +1,10 @@
package torrent
import (
pp "github.com/anacrolix/torrent/peer_protocol"
"crypto"
"expvar"
pp "github.com/anacrolix/torrent/peer_protocol"
)
const (

View File

@ -71,4 +71,4 @@ func handleEncryption(
return
}
type PeerExtensionBits=pp.PeerExtensionBits
type PeerExtensionBits = pp.PeerExtensionBits

View File

@ -5,9 +5,10 @@ import (
"net"
"github.com/anacrolix/missinggo"
"golang.org/x/time/rate"
"github.com/anacrolix/torrent/metainfo"
pp "github.com/anacrolix/torrent/peer_protocol"
"golang.org/x/time/rate"
)
type chunkSpec struct {

View File

@ -5,7 +5,6 @@ import (
"time"
flog "github.com/anacrolix/log"
"github.com/elgatito/upnp"
)

View File

@ -8,10 +8,9 @@ import (
"strconv"
"strings"
"golang.org/x/net/proxy"
"github.com/anacrolix/missinggo"
"github.com/anacrolix/missinggo/perf"
"golang.org/x/net/proxy"
)
type dialer interface {