diff options
| author | Felix Hanley <felix@userspace.com.au> | 2019-10-29 10:58:47 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2019-10-29 10:58:47 +0000 |
| commit | eda2530094e72463f6aef6e7f9bf524002e248fa (patch) | |
| tree | 66e987a6229a159c0eb19c448b3af04db5f56733 /dht | |
| parent | fbc564026fa84c7f9142cdcf60accdf6b5bdaeaf (diff) | |
| download | dhtsearch-eda2530094e72463f6aef6e7f9bf524002e248fa.tar.gz dhtsearch-eda2530094e72463f6aef6e7f9bf524002e248fa.tar.bz2 | |
Remove vendored files and create go.mod
Diffstat (limited to 'dht')
| -rw-r--r-- | dht/messages.go | 4 | ||||
| -rw-r--r-- | dht/node.go | 8 | ||||
| -rw-r--r-- | dht/options.go | 4 | ||||
| -rw-r--r-- | dht/remote_node.go | 2 | ||||
| -rw-r--r-- | dht/routing_table.go | 2 | ||||
| -rw-r--r-- | dht/routing_table_test.go | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/dht/messages.go b/dht/messages.go index 4063f01..188ed0f 100644 --- a/dht/messages.go +++ b/dht/messages.go @@ -4,8 +4,8 @@ import ( "fmt" "net" - "github.com/felix/dhtsearch/krpc" - "github.com/felix/dhtsearch/models" + "src.userspace.com.au/dhtsearch/krpc" + "src.userspace.com.au/dhtsearch/models" ) func (n *Node) onPingQuery(rn remoteNode, msg map[string]interface{}) error { diff --git a/dht/node.go b/dht/node.go index 700bfdb..2ea5f2f 100644 --- a/dht/node.go +++ b/dht/node.go @@ -6,12 +6,12 @@ import ( "net" "time" - "github.com/felix/dhtsearch/krpc" - "github.com/felix/dhtsearch/models" - "github.com/felix/go-bencode" - "github.com/felix/logger" "github.com/hashicorp/golang-lru" "golang.org/x/time/rate" + "src.userspace.com.au/dhtsearch/krpc" + "src.userspace.com.au/dhtsearch/models" + "src.userspace.com.au/go-bencode" + "src.userspace.com.au/logger" ) var ( diff --git a/dht/options.go b/dht/options.go index 86d7af7..19a5508 100644 --- a/dht/options.go +++ b/dht/options.go @@ -1,9 +1,9 @@ package dht import ( - "github.com/felix/dhtsearch/models" - "github.com/felix/logger" "github.com/hashicorp/golang-lru" + "src.userspace.com.au/dhtsearch/models" + "src.userspace.com.au/logger" ) type Option func(*Node) error diff --git a/dht/remote_node.go b/dht/remote_node.go index 7dbf893..0a5cafa 100644 --- a/dht/remote_node.go +++ b/dht/remote_node.go @@ -4,7 +4,7 @@ import ( "fmt" "net" - "github.com/felix/dhtsearch/models" + "src.userspace.com.au/dhtsearch/models" ) type remoteNode struct { diff --git a/dht/routing_table.go b/dht/routing_table.go index 3c9f72c..37af542 100644 --- a/dht/routing_table.go +++ b/dht/routing_table.go @@ -4,7 +4,7 @@ import ( "container/heap" "sync" - "github.com/felix/dhtsearch/models" + "src.userspace.com.au/dhtsearch/models" ) type rItem struct { diff --git a/dht/routing_table_test.go b/dht/routing_table_test.go index e251791..763df80 100644 --- a/dht/routing_table_test.go +++ b/dht/routing_table_test.go @@ -5,7 +5,7 @@ import ( "net" "testing" - "github.com/felix/dhtsearch/models" + "src.userspace.com.au/dhtsearch/models" ) func TestPriorityQueue(t *testing.T) { |
