mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-02-13 10:21:50 +00:00
disregard nodes if they're unimportant, even if they're already in the DHT
This commit is contained in:
parent
40bfd207f5
commit
eefabb5f9f
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ func (t *dht) handleRes(res *dhtRes) {
|
|||
key: res.Key,
|
||||
coords: res.Coords,
|
||||
}
|
||||
if _, isIn := t.table[*rinfo.getNodeID()]; isIn || t.isImportant(&rinfo) {
|
||||
if t.isImportant(&rinfo) {
|
||||
t.insert(&rinfo)
|
||||
}
|
||||
for _, info := range res.Infos {
|
||||
|
|
Loading…
Reference in a new issue