mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Update net.go
more simple
This commit is contained in:
parent
8b9f469419
commit
30e5860a5f
1 changed files with 5 additions and 5 deletions
|
|
@ -567,12 +567,12 @@ 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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue