mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-11 13:06:29 +00:00
keep peers separate from other nodes in dht
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user