Commit e75595a7 authored by Matt Joiner's avatar Matt Joiner
Browse files

Fix race on bootstrap stat

parent 8ccfa11f
......@@ -34,7 +34,7 @@ func (s *Server) Bootstrap() (ts TraversalStats, err error) {
atomic.AddInt64(&ts.NumAddrsTried, 1)
m, writes, err := s.findNode(dhtAddr, s.id)
if err == nil {
ts.NumResponses++
atomic.AddInt64(&ts.NumResponses, 1)
}
if r := m.R; r != nil {
r.ForAllNodes(func(ni krpc.NodeInfo) {
......
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