Merge pull request #246 from cdnhaese/master

Fix TTL bug
This commit is contained in:
Matthias Rampke 2019-07-08 10:51:33 +02:00 committed by GitHub
commit 802aa8a9e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,6 +169,8 @@ func (r *registry) get(metricName string, hash labelHash, metricType metricType)
rm, ok := metric.metrics[hash.values]
if ok {
now := clock.Now()
rm.lastRegisteredAt = now
return metric.vectors[hash.names].holder, rm.metric
}