sortimports
This commit is contained in:
parent
316640f921
commit
fad06c7ddf
1
Peers.go
1
Peers.go
|
@ -2,6 +2,7 @@ package torrent
|
|||
|
||||
import (
|
||||
"github.com/anacrolix/dht/krpc"
|
||||
|
||||
"github.com/anacrolix/torrent/tracker"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package torrent
|
||||
|
||||
import (
|
||||
pp "github.com/anacrolix/torrent/peer_protocol"
|
||||
"crypto"
|
||||
"expvar"
|
||||
|
||||
pp "github.com/anacrolix/torrent/peer_protocol"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -71,4 +71,4 @@ func handleEncryption(
|
|||
return
|
||||
}
|
||||
|
||||
type PeerExtensionBits=pp.PeerExtensionBits
|
||||
type PeerExtensionBits = pp.PeerExtensionBits
|
||||
|
|
3
misc.go
3
misc.go
|
@ -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 {
|
||||
|
|
|
@ -5,7 +5,6 @@ import (
|
|||
"time"
|
||||
|
||||
flog "github.com/anacrolix/log"
|
||||
|
||||
"github.com/elgatito/upnp"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue