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
7f0726f7
Commit
7f0726f7
authored
Jun 11, 2018
by
Anton Evangelatov
Committed by
Péter Szilágyi
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
metrics: return an empty snapshot for NilResettingTimer (#16930)
parent
13af2764
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
resetting_timer.go
metrics/resetting_timer.go
+5
-1
No files found.
metrics/resetting_timer.go
View file @
7f0726f7
...
@@ -58,7 +58,11 @@ type NilResettingTimer struct {
...
@@ -58,7 +58,11 @@ type NilResettingTimer struct {
func
(
NilResettingTimer
)
Values
()
[]
int64
{
return
nil
}
func
(
NilResettingTimer
)
Values
()
[]
int64
{
return
nil
}
// Snapshot is a no-op.
// Snapshot is a no-op.
func
(
NilResettingTimer
)
Snapshot
()
ResettingTimer
{
return
NilResettingTimer
{}
}
func
(
NilResettingTimer
)
Snapshot
()
ResettingTimer
{
return
&
ResettingTimerSnapshot
{
values
:
[]
int64
{},
}
}
// Time is a no-op.
// Time is a no-op.
func
(
NilResettingTimer
)
Time
(
func
())
{}
func
(
NilResettingTimer
)
Time
(
func
())
{}
...
...
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