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
6fa8bf0e
Commit
6fa8bf0e
authored
Mar 17, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore bootstrap failures in namesys initialization
parent
49b95f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lookup.go
lookup.go
+1
-2
No files found.
lookup.go
View file @
6fa8bf0e
...
...
@@ -6,7 +6,6 @@ import (
peer
"github.com/jbenet/go-ipfs/p2p/peer"
kb
"github.com/jbenet/go-ipfs/routing/kbucket"
u
"github.com/jbenet/go-ipfs/util"
errors
"github.com/jbenet/go-ipfs/util/debugerror"
pset
"github.com/jbenet/go-ipfs/util/peerset"
)
...
...
@@ -26,7 +25,7 @@ func (dht *IpfsDHT) GetClosestPeers(ctx context.Context, key u.Key) (<-chan peer
e
:=
log
.
EventBegin
(
ctx
,
"getClosestPeers"
,
&
key
)
tablepeers
:=
dht
.
routingTable
.
NearestPeers
(
kb
.
ConvertKey
(
key
),
AlphaValue
)
if
len
(
tablepeers
)
==
0
{
return
nil
,
errors
.
Wrap
(
kb
.
ErrLookupFailure
)
return
nil
,
kb
.
ErrLookupFailure
}
out
:=
make
(
chan
peer
.
ID
,
KValue
)
...
...
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