Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed Jul 18, 2024
1 parent 2d6d5a4 commit 6e0f239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/percentage.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ func getOrRegisterPercentage(factory func() Percentage, name string, args ...int
// noopPercentage is no-op implementation for Percentage interface.
type noopPercentage struct{}

func (p *noopPercentage) Mark(marked bool) {}
func (p *noopPercentage) Mark(marked bool) { /* noop */ }
func (p *noopPercentage) Value() float64 { return 0 }
func (p *noopPercentage) Update(float64) {}
func (p *noopPercentage) Update(float64) { /* noop */ }
func (p *noopPercentage) Snapshot() metrics.GaugeFloat64Snapshot { return p }

type percentageData struct {
Expand Down

0 comments on commit 6e0f239

Please sign in to comment.