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
297ec066
Unverified
Commit
297ec066
authored
Jan 17, 2023
by
ucwong
Committed by
GitHub
Jan 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
metrics/influxdb: fix time ticker leaks (#26507)
parent
f2758a8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
influxdb.go
metrics/influxdb/influxdb.go
+3
-0
influxdbv2.go
metrics/influxdb/influxdbv2.go
+3
-0
No files found.
metrics/influxdb/influxdb.go
View file @
297ec066
...
...
@@ -101,6 +101,9 @@ func (r *reporter) run() {
intervalTicker
:=
time
.
NewTicker
(
r
.
interval
)
pingTicker
:=
time
.
NewTicker
(
time
.
Second
*
5
)
defer
intervalTicker
.
Stop
()
defer
pingTicker
.
Stop
()
for
{
select
{
case
<-
intervalTicker
.
C
:
...
...
metrics/influxdb/influxdbv2.go
View file @
297ec066
...
...
@@ -62,6 +62,9 @@ func (r *v2Reporter) run() {
intervalTicker
:=
time
.
NewTicker
(
r
.
interval
)
pingTicker
:=
time
.
NewTicker
(
time
.
Second
*
5
)
defer
intervalTicker
.
Stop
()
defer
pingTicker
.
Stop
()
for
{
select
{
case
<-
intervalTicker
.
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