Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-kbucket
Commits
9647f7ba
Commit
9647f7ba
authored
Oct 05, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update deps
parent
bcd82a63
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
18 deletions
+14
-18
bucket.go
bucket.go
+1
-1
package.json
package.json
+6
-11
sorting.go
sorting.go
+2
-1
table.go
table.go
+2
-2
table_test.go
table_test.go
+2
-2
util.go
util.go
+1
-1
No files found.
bucket.go
View file @
9647f7ba
...
...
@@ -4,7 +4,7 @@ import (
"container/list"
"sync"
peer
"github.com/
ipfs
/go-libp2p-peer"
peer
"github.com/
libp2p
/go-libp2p-peer"
)
// Bucket holds a list of peers.
...
...
package.json
View file @
9647f7ba
...
...
@@ -14,25 +14,20 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
WXjJo15p4pzT7cayEwZi2sWgJqLnGDof6ZGMh9xBgU1p
"
,
"hash"
:
"Qm
fMmLGoKzCHDN7cGgk64PJr4iipzidDRME8HABSJqvmhC
"
,
"name"
:
"go-libp2p-peer"
,
"version"
:
"2.
0.4
"
"version"
:
"2.
1.0
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
YkwVGkwoPbMVQEbf6LonZg4SsCxGP3H7PBEtdNCNRyxD
"
,
"hash"
:
"Qm
XXCcQ7CLg5a81Ui9TTR35QcR4y7ZyihxwfjqaHfUVcVo
"
,
"name"
:
"go-libp2p-peerstore"
,
"version"
:
"1.
2.5
"
"version"
:
"1.
3.0
"
},
{
"hash"
:
"QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1"
,
"name"
:
"go-ipfs-util"
,
"version"
:
"1.0.0"
},
{
"hash"
:
"QmYpVUnnedgGrp6cX2pBii5HRQgcSr778FiKVe7o7nF5Z3"
,
"hash"
:
"QmaEcA713Y54EtSsj7ZYfwXmsTfxrJ4oywr1iFt1d6LKY5"
,
"name"
:
"go-testutil"
,
"version"
:
"1.
0.2
"
"version"
:
"1.
1.0
"
}
],
"gxVersion"
:
"0.4.0"
,
...
...
sorting.go
View file @
9647f7ba
...
...
@@ -2,8 +2,9 @@ package kbucket
import
(
"container/list"
peer
"github.com/ipfs/go-libp2p-peer"
"sort"
peer
"github.com/libp2p/go-libp2p-peer"
)
// A helper struct to sort peers by their distance to the local node
...
...
table.go
View file @
9647f7ba
...
...
@@ -7,9 +7,9 @@ import (
"sync"
"time"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
logging
"github.com/ipfs/go-log"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
)
var
log
=
logging
.
Logger
(
"table"
)
...
...
table_test.go
View file @
9647f7ba
...
...
@@ -5,8 +5,8 @@ import (
"testing"
"time"
peer
"github.com/
ipfs
/go-libp2p-peer"
pstore
"github.com/
ipfs
/go-libp2p-peerstore"
peer
"github.com/
libp2p
/go-libp2p-peer"
pstore
"github.com/
libp2p
/go-libp2p-peerstore"
tu
"github.com/libp2p/go-testutil"
)
...
...
util.go
View file @
9647f7ba
...
...
@@ -6,8 +6,8 @@ import (
"errors"
u
"github.com/ipfs/go-ipfs-util"
peer
"github.com/ipfs/go-libp2p-peer"
ks
"github.com/libp2p/go-libp2p-kbucket/keyspace"
peer
"github.com/libp2p/go-libp2p-peer"
)
// Returned if a routing table query returns no results. This is NOT expected
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment