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
1e901fd4
Unverified
Commit
1e901fd4
authored
Jun 16, 2020
by
Dean Eigenmann
Committed by
GitHub
Jun 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dht.go
parent
c245d836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
dht.go
dht.go
+0
-1
No files found.
dht.go
View file @
1e901fd4
...
...
@@ -226,7 +226,6 @@ func NewDHT(ctx context.Context, h host.Host, dstore ds.Batching) *IpfsDHT {
// NewDHTClient creates a new DHT object with the given peer as the 'local'
// host. IpfsDHT clients initialized with this function will not respond to DHT
// requests. If you need a peer to respond to DHT requests, use NewDHT instead.
// NewDHTClient creates a new DHT object with the given peer as the 'local' host
func
NewDHTClient
(
ctx
context
.
Context
,
h
host
.
Host
,
dstore
ds
.
Batching
)
*
IpfsDHT
{
dht
,
err
:=
New
(
ctx
,
h
,
Datastore
(
dstore
),
Mode
(
ModeClient
))
if
err
!=
nil
{
...
...
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