Skip to content

Commit

Permalink
Merge pull request #17 from Padorax/fix-type
Browse files Browse the repository at this point in the history
Fix error formatter in types for metric.Type
  • Loading branch information
penglongli authored Nov 11, 2021
2 parents b65821f + 02fa49d commit bba46b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ginmetrics/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (m *Monitor) AddMetric(metric *Metric) error {
m.metrics[metric.Name] = metric
}
}
return errors.Errorf("metric type '%s' not existed.", metric.Type)
return errors.Errorf("metric type '%d' not existed.", metric.Type)
}

func counterHandler(metric *Metric) error {
Expand Down

0 comments on commit bba46b5

Please sign in to comment.