Commit 8fbcb766 authored by Matt Joiner's avatar Matt Joiner
Browse files

Change import paths to have v2 in them

parent de598651
......@@ -3,7 +3,7 @@ package dht
import (
"net"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/missinggo"
)
......
......@@ -8,7 +8,7 @@ import (
"net"
"time"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/sync"
"github.com/willf/bloom"
)
......
......@@ -5,7 +5,7 @@ import (
"net"
"sync"
"github.com/anacrolix/dht"
"github.com/anacrolix/dht/v2"
"github.com/anacrolix/tagflag"
)
......
......@@ -10,7 +10,7 @@ import (
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/dht"
"github.com/anacrolix/dht/v2"
)
var (
......
......@@ -10,8 +10,8 @@ import (
"github.com/anacrolix/tagflag"
"github.com/anacrolix/dht"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2"
"github.com/anacrolix/dht/v2/krpc"
)
func main() {
......
......@@ -8,7 +8,7 @@ import (
"github.com/docopt/docopt-go"
"github.com/anacrolix/dht"
"github.com/anacrolix/dht/v2"
)
func main() {
......
......@@ -8,7 +8,7 @@ import (
"os"
"os/signal"
"github.com/anacrolix/dht"
"github.com/anacrolix/dht/v2"
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/tagflag"
)
......
......@@ -10,7 +10,7 @@ import (
"net"
"time"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/missinggo"
"github.com/anacrolix/missinggo/conntrack"
"github.com/anacrolix/torrent/iplist"
......
......@@ -17,7 +17,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
)
func TestSetNilBigInt(t *testing.T) {
......
......@@ -4,7 +4,7 @@ import (
"fmt"
"net"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
)
func mustListen(addr string) net.PacketConn {
......
......@@ -3,7 +3,7 @@ package dht
import (
"time"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
)
type nodeKey struct {
......
......@@ -4,7 +4,7 @@ import (
"io/ioutil"
"os"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
)
func WriteNodesToFile(ns []krpc.NodeInfo, fileName string) (err error) {
......
......@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
)
func TestSaveLoadNodesFile(t *testing.T) {
......
......@@ -14,7 +14,7 @@ import (
"github.com/pkg/errors"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
"github.com/anacrolix/missinggo"
"github.com/anacrolix/missinggo/conntrack"
"github.com/anacrolix/torrent/bencode"
......
......@@ -4,7 +4,7 @@ import (
"sync"
"time"
"github.com/anacrolix/dht/krpc"
"github.com/anacrolix/dht/v2/krpc"
)
// Transaction keeps track of a message exchange between nodes, such as a
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment