forked from mirrors/statsd_exporter
4c0e26bfa1
This commit fixes the case when the metric is not present in rm (registered metric) then LastRegisteredAt and TTL are initialized twice. Firstly, LastRegisteredAt is initialized with the time.Time's zero value and then with clock.Now(). Plus, TTL is initialized with the same value twice. Signed-off-by: subham sarkar <subham.sarkar@guavus.com> |
||
---|---|---|
.. | ||
registry.go |