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
dms3
go-dms3-routing
Commits
c9532719
Commit
c9532719
authored
Aug 26, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use correct protocol names for ipfs services
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
233550e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dht/dht.go
dht/dht.go
+3
-1
No files found.
dht/dht.go
View file @
c9532719
...
@@ -31,7 +31,8 @@ import (
...
@@ -31,7 +31,8 @@ import (
var
log
=
logging
.
Logger
(
"dht"
)
var
log
=
logging
.
Logger
(
"dht"
)
var
ProtocolDHT
protocol
.
ID
=
"/ipfs/dht"
var
ProtocolDHT
protocol
.
ID
=
"/ipfs/kad/1.0.0"
var
ProtocolDHTOld
protocol
.
ID
=
"/ipfs/dht"
// NumBootstrapQueries defines the number of random dht queries to do to
// NumBootstrapQueries defines the number of random dht queries to do to
// collect members of the routing table.
// collect members of the routing table.
...
@@ -85,6 +86,7 @@ func NewDHT(ctx context.Context, h host.Host, dstore ds.Batching) *IpfsDHT {
...
@@ -85,6 +86,7 @@ func NewDHT(ctx context.Context, h host.Host, dstore ds.Batching) *IpfsDHT {
dht
.
ctx
=
ctx
dht
.
ctx
=
ctx
h
.
SetStreamHandler
(
ProtocolDHT
,
dht
.
handleNewStream
)
h
.
SetStreamHandler
(
ProtocolDHT
,
dht
.
handleNewStream
)
h
.
SetStreamHandler
(
ProtocolDHTOld
,
dht
.
handleNewStream
)
dht
.
providers
=
providers
.
NewProviderManager
(
dht
.
ctx
,
dht
.
self
,
dstore
)
dht
.
providers
=
providers
.
NewProviderManager
(
dht
.
ctx
,
dht
.
self
,
dstore
)
dht
.
proc
.
AddChild
(
dht
.
providers
.
Process
())
dht
.
proc
.
AddChild
(
dht
.
providers
.
Process
())
goprocessctx
.
CloseAfterContext
(
dht
.
proc
,
ctx
)
goprocessctx
.
CloseAfterContext
(
dht
.
proc
,
ctx
)
...
...
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