good morning!!!!

Skip to content
Snippets Groups Projects
Commit 89fe24bb authored by ANOTHEL's avatar ANOTHEL Committed by Péter Szilágyi
Browse files

p2p/discv5: minor code simplification (#18188)

* Update net.go

more simple

* Update net.go
parent 8b9f4694
No related branches found
No related tags found
No related merge requests found
......@@ -567,12 +567,11 @@ loop:
net.ticketStore.searchLookupDone(res.target, res.nodes, func(n *Node, topic Topic) []byte {
if n.state != nil && n.state.canQuery {
return net.conn.send(n, topicQueryPacket, topicQuery{Topic: topic}) // TODO: set expiration
} else {
if n.state == unknown {
net.ping(n, n.addr())
}
return nil
}
if n.state == unknown {
net.ping(n, n.addr())
}
return nil
})
case <-statsDump.C:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment