mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2025-06-26 01:09:24 +00:00
gofmt and minor parsing fix
This commit is contained in:
@ -84,10 +84,10 @@ func doRumor(key string, out chan rumorResult) {
|
||||
results := make(map[string]interface{})
|
||||
if res, ok := getNodeInfo(key)["response"]; ok {
|
||||
for addr, v := range res.(map[string]interface{}) {
|
||||
vm, ok := v.(map[string]interface{})
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
vm, ok := v.(map[string]interface{})
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
results["address"] = addr
|
||||
results["nodeinfo"] = vm
|
||||
}
|
||||
|
Reference in New Issue
Block a user