mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +08:00
dht bugfix: unlock on print
This commit is contained in:
@ -227,4 +227,5 @@ func (rt *RoutingTable) Print() {
|
|||||||
for i, p := range peers {
|
for i, p := range peers {
|
||||||
fmt.Printf("%d) %s %s\n", i, p.Pretty(), rt.metrics.LatencyEWMA(p).String())
|
fmt.Printf("%d) %s %s\n", i, p.Pretty(), rt.metrics.LatencyEWMA(p).String())
|
||||||
}
|
}
|
||||||
|
rt.tabLock.RUnlock()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user