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
1e2e1b41
Unverified
Commit
1e2e1b41
authored
Apr 01, 2020
by
ucwong
Committed by
GitHub
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/devp2p, cmd/wnode, whisper: add missing calls to Timer.Stop (#20843)
parent
d56dc038
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
crawl.go
cmd/devp2p/crawl.go
+1
-0
main.go
cmd/wnode/main.go
+1
-0
whisper.go
whisper/whisperv6/whisper.go
+1
-0
No files found.
cmd/devp2p/crawl.go
View file @
1e2e1b41
...
...
@@ -63,6 +63,7 @@ func (c *crawler) run(timeout time.Duration) nodeSet {
doneCh
=
make
(
chan
enode
.
Iterator
,
len
(
c
.
iters
))
liveIters
=
len
(
c
.
iters
)
)
defer
timeoutTimer
.
Stop
()
for
_
,
it
:=
range
c
.
iters
{
go
c
.
runIterator
(
doneCh
,
it
)
}
...
...
cmd/wnode/main.go
View file @
1e2e1b41
...
...
@@ -599,6 +599,7 @@ func messageLoop() {
}
ticker
:=
time
.
NewTicker
(
time
.
Millisecond
*
50
)
defer
ticker
.
Stop
()
for
{
select
{
...
...
whisper/whisperv6/whisper.go
View file @
1e2e1b41
...
...
@@ -905,6 +905,7 @@ func (whisper *Whisper) update() {
defer
whisper
.
wg
.
Done
()
// Start a ticker to check for expirations
expire
:=
time
.
NewTicker
(
expirationCycle
)
defer
expire
.
Stop
()
// Repeat updates until termination is requested
for
{
...
...
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