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
9803fb82
Commit
9803fb82
authored
Dec 08, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Jan 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(core) dht.Bootstrap
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
858cde0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dht.go
dht.go
+2
-1
No files found.
dht.go
View file @
9803fb82
...
...
@@ -341,7 +341,7 @@ func (dht *IpfsDHT) PingRoutine(t time.Duration) {
}
// Bootstrap builds up list of peers by requesting random peer IDs
func
(
dht
*
IpfsDHT
)
Bootstrap
(
ctx
context
.
Context
,
queries
int
)
{
func
(
dht
*
IpfsDHT
)
Bootstrap
(
ctx
context
.
Context
,
queries
int
)
error
{
// bootstrap sequentially, as results will compound
for
i
:=
0
;
i
<
NumBootstrapQueries
;
i
++
{
...
...
@@ -357,4 +357,5 @@ func (dht *IpfsDHT) Bootstrap(ctx context.Context, queries int) {
log
.
Errorf
(
"dht seemingly found a peer at a random bootstrap id (%s)..."
,
pi
)
}
}
return
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