mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Remove router.doAdmin and switchTable.doAdmin
This commit is contained in:
parent
a8b323acdd
commit
5d7d84f827
8 changed files with 15 additions and 25 deletions
|
@ -259,7 +259,7 @@ func DEBUG_wire_encode_coords(coords []byte) []byte {
|
|||
|
||||
func (c *Core) DEBUG_getDHTSize() int {
|
||||
var total int
|
||||
c.router.doAdmin(func() {
|
||||
phony.Block(c.router, func() {
|
||||
total = len(c.router.dht.table)
|
||||
})
|
||||
return total
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue