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
4804caf1
Commit
4804caf1
authored
Apr 15, 2019
by
Matt Joiner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the old protocol from the defaults
parent
4f397ca2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
opts/options.go
opts/options.go
+9
-4
No files found.
opts/options.go
View file @
4804caf1
...
...
@@ -5,13 +5,18 @@ import (
ds
"github.com/ipfs/go-datastore"
dssync
"github.com/ipfs/go-datastore/sync"
"github.com/libp2p/go-libp2p-protocol"
protocol
"github.com/libp2p/go-libp2p-protocol"
record
"github.com/libp2p/go-libp2p-record"
)
var
ProtocolDHT
protocol
.
ID
=
"/ipfs/kad/1.0.0"
var
ProtocolDHTOld
protocol
.
ID
=
"/ipfs/dht"
var
DefaultProtocols
=
[]
protocol
.
ID
{
ProtocolDHT
,
ProtocolDHTOld
}
// Deprecated: The old format did not support more than one message per stream, and is not supported
// or relevant with stream pooling. ProtocolDHT should be used instead.
const
ProtocolDHTOld
protocol
.
ID
=
"/ipfs/dht"
var
(
ProtocolDHT
protocol
.
ID
=
"/ipfs/kad/1.0.0"
DefaultProtocols
=
[]
protocol
.
ID
{
ProtocolDHT
}
)
// Options is a structure containing all the options that can be used when constructing a DHT.
type
Options
struct
{
...
...
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