mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
Merge branch 'develop' of https://github.com/yggdrasil-network/yggdrasil-go into future
This commit is contained in:
commit
366a8ba3dd
5 changed files with 174 additions and 144 deletions
|
@ -259,7 +259,9 @@ func (t *dht) handleRes(res *dhtRes) {
|
|||
key: res.Key,
|
||||
coords: res.Coords,
|
||||
}
|
||||
t.insert(&rinfo)
|
||||
if t.isImportant(&rinfo) {
|
||||
t.insert(&rinfo)
|
||||
}
|
||||
for _, info := range res.Infos {
|
||||
if *info.getNodeID() == t.nodeID {
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue