Remove junk code
This commit is contained in:
parent
285bb84870
commit
8a99cb2bd7
6
main.go
6
main.go
|
@ -97,10 +97,6 @@ func onReceive(addr net.UDPAddr, res *data.ResponseData) {
|
|||
nodes.Update(nodeId, res)
|
||||
|
||||
if val := res.Statistics; val != nil && statsDb != nil {
|
||||
if node := res.NodeInfo; val != nil && statsDb != nil {
|
||||
statsDb.Add(val, node)
|
||||
} else {
|
||||
statsDb.Add(val, nil)
|
||||
}
|
||||
statsDb.Add(val, res.NodeInfo)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue