1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 09:59:13 +08:00

dht bugfix: unlock on print

This commit is contained in:
Juan Batiz-Benet
2014-12-23 18:54:23 -08:00
parent 04f9805d5d
commit ea2706c698

View File

@ -227,4 +227,5 @@ func (rt *RoutingTable) Print() {
for i, p := range peers {
fmt.Printf("%d) %s %s\n", i, p.Pretty(), rt.metrics.LatencyEWMA(p).String())
}
rt.tabLock.RUnlock()
}