p2p/discover: add missing lock when calling tab.handleAddNode (#29960)

This commit is contained in:
Gealber Morales 2024-06-09 22:47:51 +02:00 committed by GitHub
parent 1098d148a5
commit 349fcdd22d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -452,7 +452,9 @@ func (tab *Table) loadSeedNodes() {
addr, _ := seed.UDPEndpoint()
tab.log.Trace("Found seed node in database", "id", seed.ID(), "addr", addr, "age", age)
}
tab.mutex.Lock()
tab.handleAddNode(addNodeOp{node: seed, isInbound: false})
tab.mutex.Unlock()
}
}