mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
keep peers separate from other nodes in dht
This commit is contained in:
parent
e04ab7cfe6
commit
9ce0b7fbea
5 changed files with 72 additions and 34 deletions
|
@ -154,7 +154,8 @@ func (c *Core) DEBUG_getDHTSize() int {
|
|||
total := 0
|
||||
for bidx := 0; bidx < c.dht.nBuckets(); bidx++ {
|
||||
b := c.dht.getBucket(bidx)
|
||||
total += len(b.infos)
|
||||
total += len(b.peers)
|
||||
total += len(b.other)
|
||||
}
|
||||
return total
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue