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
169395b4
Commit
169395b4
authored
Mar 16, 2020
by
Aarsh Shah
Committed by
Steven Allen
Apr 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change tests
parent
229cacc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dht.go
dht.go
+2
-2
No files found.
dht.go
View file @
169395b4
...
...
@@ -35,7 +35,7 @@ import (
)
var
logger
=
logging
.
Logger
(
"dht"
)
var
rtPvLogger
=
logging
.
Logger
(
"dht/rt
/peer
-validation"
)
var
rtPvLogger
=
logging
.
Logger
(
"dht/rt-validation"
)
const
BaseConnMgrScore
=
5
...
...
@@ -256,7 +256,7 @@ func makeRoutingTable(h host.Host, cfg config) (*kb.RoutingTable, error) {
// construct the routing table with a peer validation function
pvF
:=
func
(
c
context
.
Context
,
p
peer
.
ID
)
bool
{
if
err
:=
h
.
Connect
(
c
,
peer
.
AddrInfo
{
ID
:
p
});
err
!=
nil
{
rtPvLogger
.
Error
f
(
"failed to connect to peer %s for validation, err=%s"
,
p
,
err
)
rtPvLogger
.
Info
f
(
"failed to connect to peer %s for validation, err=%s"
,
p
,
err
)
return
false
}
return
true
...
...
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