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-kad-dht
Commits
b9f86c8c
Commit
b9f86c8c
authored
May 10, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update libp2p with go-multiaddr and go-stream-muxer updates
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
0a60fad1
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
27 additions
and
27 deletions
+27
-27
dht.go
dht.go
+3
-3
dht_bootstrap.go
dht_bootstrap.go
+1
-1
dht_net.go
dht_net.go
+2
-2
dht_test.go
dht_test.go
+3
-3
diag.go
diag.go
+1
-1
ext_test.go
ext_test.go
+3
-3
handlers.go
handlers.go
+1
-1
lookup.go
lookup.go
+1
-1
notif.go
notif.go
+2
-2
pb/message.go
pb/message.go
+3
-3
providers.go
providers.go
+1
-1
providers_test.go
providers_test.go
+1
-1
query.go
query.go
+2
-2
records.go
records.go
+1
-1
routing.go
routing.go
+2
-2
No files found.
dht.go
View file @
b9f86c8c
...
...
@@ -15,10 +15,10 @@ import (
kb
"github.com/ipfs/go-ipfs/routing/kbucket"
record
"github.com/ipfs/go-ipfs/routing/record"
ci
"gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto"
host
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/host"
protocol
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/protocol"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
peer
"gx/ipfs/QmZpD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7/go-libp2p-peer"
logging
"gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log"
host
"gx/ipfs/QmcQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8/go-libp2p/p2p/host"
protocol
"gx/ipfs/QmcQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8/go-libp2p/p2p/protocol"
ds
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore"
goprocess
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
...
...
dht_bootstrap.go
View file @
b9f86c8c
...
...
@@ -10,7 +10,7 @@ import (
routing
"github.com/ipfs/go-ipfs/routing"
u
"gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
goprocess
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
periodicproc
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/periodic"
...
...
dht_net.go
View file @
b9f86c8c
...
...
@@ -6,10 +6,10 @@ import (
ctxio
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-context/io"
pb
"github.com/ipfs/go-ipfs/routing/dht/pb"
inet
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/net"
ggio
"gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/io"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
inet
"gx/ipfs/QmcQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8/go-libp2p/p2p/net"
)
// handleNewStream implements the inet.StreamHandler
...
...
dht_test.go
View file @
b9f86c8c
...
...
@@ -11,15 +11,15 @@ import (
ds
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore"
dssync
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore/sync"
ma
"gx/ipfs/QmYzDkkgAEmrcNzFCiYo6L1dTX4EAG1gZkbtdbd9trL4vd/go-multiaddr"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
key
"github.com/ipfs/go-ipfs/blocks/key"
routing
"github.com/ipfs/go-ipfs/routing"
record
"github.com/ipfs/go-ipfs/routing/record"
netutil
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/test/util"
u
"gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
peer
"gx/ipfs/QmZpD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7/go-libp2p-peer"
netutil
"gx/ipfs/QmcQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8/go-libp2p/p2p/test/util"
ci
"github.com/ipfs/go-ipfs/thirdparty/testutil/ci"
travisci
"github.com/ipfs/go-ipfs/thirdparty/testutil/ci/travis"
...
...
diag.go
View file @
b9f86c8c
...
...
@@ -4,7 +4,7 @@ import (
"encoding/json"
"time"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
)
type
connDiagInfo
struct
{
...
...
ext_test.go
View file @
b9f86c8c
...
...
@@ -16,10 +16,10 @@ import (
routing
"github.com/ipfs/go-ipfs/routing"
pb
"github.com/ipfs/go-ipfs/routing/dht/pb"
record
"github.com/ipfs/go-ipfs/routing/record"
inet
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/net"
mocknet
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/net/mock"
u
"gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
peer
"gx/ipfs/QmZpD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7/go-libp2p-peer"
inet
"gx/ipfs/QmcQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8/go-libp2p/p2p/net"
mocknet
"gx/ipfs/QmcQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8/go-libp2p/p2p/net/mock"
)
func
TestGetFailures
(
t
*
testing
.
T
)
{
...
...
handlers.go
View file @
b9f86c8c
...
...
@@ -11,7 +11,7 @@ import (
lgbl
"github.com/ipfs/go-ipfs/thirdparty/loggables"
proto
"gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
u
"gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
)
...
...
lookup.go
View file @
b9f86c8c
...
...
@@ -5,7 +5,7 @@ import (
notif
"github.com/ipfs/go-ipfs/notifications"
kb
"github.com/ipfs/go-ipfs/routing/kbucket"
pset
"github.com/ipfs/go-ipfs/thirdparty/peerset"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
)
...
...
notif.go
View file @
b9f86c8c
package
dht
import
(
ma
"gx/ipfs/Qm
cobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"gx/ipfs/Qm
YzDkkgAEmrcNzFCiYo6L1dTX4EAG1gZkbtdbd9trL4vd
/go-multiaddr"
inet
"gx/ipfs/Qm
XDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5
/go-libp2p/p2p/net"
inet
"gx/ipfs/Qm
cQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8
/go-libp2p/p2p/net"
)
// netNotifiee defines methods to be used with the IpfsDHT
...
...
pb/message.go
View file @
b9f86c8c
package
dht_pb
import
(
ma
"gx/ipfs/Qm
cobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"gx/ipfs/Qm
YzDkkgAEmrcNzFCiYo6L1dTX4EAG1gZkbtdbd9trL4vd
/go-multiaddr"
key
"github.com/ipfs/go-ipfs/blocks/key"
inet
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/net"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
peer
"gx/ipfs/QmZpD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7/go-libp2p-peer"
logging
"gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log"
inet
"gx/ipfs/QmcQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8/go-libp2p/p2p/net"
)
var
log
=
logging
.
Logger
(
"dht.pb"
)
...
...
providers.go
View file @
b9f86c8c
...
...
@@ -6,7 +6,7 @@ import (
key
"github.com/ipfs/go-ipfs/blocks/key"
goprocess
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
goprocessctx
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
)
...
...
providers_test.go
View file @
b9f86c8c
...
...
@@ -4,7 +4,7 @@ import (
"testing"
key
"github.com/ipfs/go-ipfs/blocks/key"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
)
...
...
query.go
View file @
b9f86c8c
...
...
@@ -9,8 +9,8 @@ import (
pset
"github.com/ipfs/go-ipfs/thirdparty/peerset"
todoctr
"github.com/ipfs/go-ipfs/thirdparty/todocounter"
u
"gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
queue
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer/queue"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
queue
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer/queue"
logging
"gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log"
process
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
...
...
records.go
View file @
b9f86c8c
...
...
@@ -9,7 +9,7 @@ import (
pb
"github.com/ipfs/go-ipfs/routing/dht/pb"
record
"github.com/ipfs/go-ipfs/routing/record"
ci
"gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto"
peer
"gx/ipfs/QmZ
wZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"gx/ipfs/QmZ
pD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7
/go-libp2p-peer"
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
)
...
...
routing.go
View file @
b9f86c8c
...
...
@@ -12,9 +12,9 @@ import (
kb
"github.com/ipfs/go-ipfs/routing/kbucket"
record
"github.com/ipfs/go-ipfs/routing/record"
pset
"github.com/ipfs/go-ipfs/thirdparty/peerset"
inet
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/net"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
peer
"gx/ipfs/QmZpD74pUj6vuxTp1o6LhA3JavC2Bvh9fsWPPVvHnD9sE7/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
inet
"gx/ipfs/QmcQTVCQWCN2MYgBHpFXE5S56rcg2mRsxaRgMYmA1UWgA8/go-libp2p/p2p/net"
)
// asyncQueryBuffer is the size of buffered channels in async queries. This
...
...
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