dht bugfix: unlock on print
Juan Batiz-Benet committed
Dec 23, 2014 at 18:54 UTC
ea2706c6981cda4eebdba96dcb48a36409cf70d1
1 file changed
+1
routing/kbucket/table.go
+1
@@ -227,4 +227,5 @@ func (rt *RoutingTable) Print() {
227
for i, p := range peers {
228
fmt.Printf("%d) %s %s\n", i, p.Pretty(), rt.metrics.LatencyEWMA(p).String())
229
}
230
+ rt.tabLock.RUnlock()
231
}