Commit 1deeb429 authored by Jeromy's avatar Jeromy
Browse files

record ping latencies in peerstore

Showing with 1 addition and 0 deletions
+1 -0
......@@ -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():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment