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-kbucket
Commits
1e9aa6d8
Commit
1e9aa6d8
authored
Oct 08, 2014
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add in some extra debug logging, and increase routing table latencies
parent
aea8c8b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
table.go
table.go
+4
-0
No files found.
table.go
View file @
1e9aa6d8
...
...
@@ -11,6 +11,8 @@ import (
u
"github.com/jbenet/go-ipfs/util"
)
var
log
=
u
.
Logger
(
"table"
)
// RoutingTable defines the routing table.
type
RoutingTable
struct
{
...
...
@@ -138,6 +140,8 @@ func (rt *RoutingTable) NearestPeer(id ID) *peer.Peer {
if
len
(
peers
)
>
0
{
return
peers
[
0
]
}
log
.
Error
(
"NearestPeer: Returning nil, table size = %d"
,
rt
.
Size
())
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