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
79bb9300
Unverified
Commit
79bb9300
authored
Aug 24, 2021
by
chuwt
Committed by
GitHub
Aug 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trie, les: add missing calls to Ticker.Stop (#23415)
parent
ea4bc2db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
pruner.go
les/pruner.go
+1
-0
sync_bloom.go
trie/sync_bloom.go
+2
-0
No files found.
les/pruner.go
View file @
79bb9300
...
...
@@ -62,6 +62,7 @@ func (p *pruner) loop() {
// cleanTicker is the ticker used to trigger a history clean 2 times a day.
var
cleanTicker
=
time
.
NewTicker
(
12
*
time
.
Hour
)
defer
cleanTicker
.
Stop
()
// pruning finds the sections that have been processed by all indexers
// and deletes all historical chain data.
...
...
trie/sync_bloom.go
View file @
79bb9300
...
...
@@ -129,6 +129,8 @@ func (b *SyncBloom) init(database ethdb.Iteratee) {
func
(
b
*
SyncBloom
)
meter
()
{
// check every second
tick
:=
time
.
NewTicker
(
1
*
time
.
Second
)
defer
tick
.
Stop
()
for
{
select
{
case
<-
tick
.
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