1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 02:30:39 +08:00

fix(peer) update latency

This commit is contained in:
Brian Tiger Chow
2014-11-04 21:08:25 -08:00
parent de170927ad
commit 074722cf8a

View File

@ -287,6 +287,8 @@ func (p *peer) Update(other Peer) error {
p.AddAddress(a)
}
p.SetLatency(other.GetLatency())
sk := other.PrivKey()
pk := other.PubKey()
p.Lock()