Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
1deeb429
Commit
1deeb429
authored
Feb 21, 2016
by
Jeromy
Browse files
record ping latencies in peerstore
parent
cddfee5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
p2p/protocol/ping/ping.go
View file @
1deeb429
...
...
@@ -69,6 +69,7 @@ func (ps *PingService) Ping(ctx context.Context, p peer.ID) (<-chan time.Duratio
return
}
ps
.
Host
.
Peerstore
()
.
RecordLatency
(
p
,
t
)
select
{
case
out
<-
t
:
case
<-
ctx
.
Done
()
:
...
...
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