Commit 8bdc248e authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

dht bugfix: unlock on print

parent 140df99d
...@@ -227,4 +227,5 @@ func (rt *RoutingTable) Print() { ...@@ -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()
} }
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