Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
89fe24bb
Commit
89fe24bb
authored
Nov 27, 2018
by
ANOTHEL
Committed by
Péter Szilágyi
Nov 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p2p/discv5: minor code simplification (#18188)
* Update net.go more simple * Update net.go
parent
8b9f4694
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
net.go
p2p/discv5/net.go
+4
-5
No files found.
p2p/discv5/net.go
View file @
89fe24bb
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment