5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-10 07:30:27 +00:00

Fix DEBUG_getDHTSize

This commit is contained in:
Neil Alexander 2019-08-28 12:46:49 +01:00
parent e553f3e013
commit 881d0a1ada
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -259,7 +259,7 @@ func DEBUG_wire_encode_coords(coords []byte) []byte {
func (c *Core) DEBUG_getDHTSize() int { func (c *Core) DEBUG_getDHTSize() int {
var total int var total int
phony.Block(c.router, func() { phony.Block(&c.router, func() {
total = len(c.router.dht.table) total = len(c.router.dht.table)
}) })
return total return total