Skip to content

Commit

Permalink
fix a typo from merge conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
mkcp committed Oct 12, 2020
1 parent 55fa26a commit 1c0b6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (p *PrometheusSink) Collect(c chan<- prometheus.Metric) {
if v != nil {
lastUpdate := v.(*PrometheusCounter).updatedAt
if expire && lastUpdate.Add(p.expiration).Before(now) {
if v.(PrometheusCounter).canDelete {
if v.(*PrometheusCounter).canDelete {
p.counters.Delete(k)
return true
}
Expand Down

0 comments on commit 1c0b6cf

Please sign in to comment.