mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Formatting
This commit is contained in:
parent
483d90a728
commit
8ef852469b
1 changed files with 21 additions and 19 deletions
|
@ -77,9 +77,11 @@ func (a *admin) handleRequest(conn net.Conn) {
|
||||||
b := a.core.dht.getBucket(i)
|
b := a.core.dht.getBucket(i)
|
||||||
for _, v := range b.infos {
|
for _, v := range b.infos {
|
||||||
var destPorts []switchPort
|
var destPorts []switchPort
|
||||||
for offset := 0 ; ; {
|
for offset := 0; ; {
|
||||||
coord, length := wire_decode_uint64(v.coords[offset:])
|
coord, length := wire_decode_uint64(v.coords[offset:])
|
||||||
if length == 0 { break }
|
if length == 0 {
|
||||||
|
break
|
||||||
|
}
|
||||||
destPorts = append(destPorts, switchPort(coord))
|
destPorts = append(destPorts, switchPort(coord))
|
||||||
offset += length
|
offset += length
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue