Skip to content

Commit

Permalink
fix Guage => Gauge typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Jul 1, 2019
1 parent 689816a commit 7336bac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type Type int

const (
Duration Type = 0
Guage Type = 1
Gauge Type = 1
Counter Type = 2
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/metrics/statsd_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func Update(updateOption UpdateOption) {
case Duration:
err = instance.client.TimingDuration(formatter(updateOption.Name), updateOption.Duration, instance.sampleRate)
break
case Guage:
case Gauge:
err = instance.client.Gauge(formatter(updateOption.Name), int64(updateOption.NumValue), instance.sampleRate)
}
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/metrics/statsd_collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestUpdate(t *testing.T) {
mock.AnythingOfType("string"),
mock.AnythingOfType("int64"),
mock.AnythingOfType("float32")).Return(errors.New("error"))
Update(UpdateOption{Type: Guage, NumValue: -500})
Update(UpdateOption{Type: Gauge, NumValue: -500})

mc.AssertExpectations(t)
}
Expand Down

0 comments on commit 7336bac

Please sign in to comment.