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
900149aa
Commit
900149aa
authored
Oct 25, 2014
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add in dag removal
parent
05ac1e87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dht/dht.go
dht/dht.go
+5
-1
No files found.
dht/dht.go
View file @
900149aa
...
...
@@ -540,7 +540,11 @@ func (dht *IpfsDHT) PingRoutine(t time.Duration) {
func
(
dht
*
IpfsDHT
)
Bootstrap
(
ctx
context
.
Context
)
{
id
:=
make
([]
byte
,
16
)
rand
.
Read
(
id
)
_
,
err
:=
dht
.
FindPeer
(
ctx
,
peer
.
ID
(
id
))
p
,
err
:=
dht
.
FindPeer
(
ctx
,
peer
.
ID
(
id
))
if
err
!=
nil
{
log
.
Error
(
"Bootstrap peer error: %s"
,
err
)
}
err
=
dht
.
dialer
.
DialPeer
(
p
)
if
err
!=
nil
{
log
.
Errorf
(
"Bootstrap peer error: %s"
,
err
)
}
...
...
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