diff options
Diffstat (limited to 'plugin/template/metrics.go')
-rw-r--r-- | plugin/template/metrics.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugin/template/metrics.go b/plugin/template/metrics.go index 25474fc6c..d5fe0a4d7 100644 --- a/plugin/template/metrics.go +++ b/plugin/template/metrics.go @@ -1,8 +1,6 @@ package template import ( - "sync" - "github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin/metrics" @@ -34,13 +32,9 @@ var ( // OnStartupMetrics sets up the metrics on startup. func setupMetrics(c *caddy.Controller) error { c.OnStartup(func() error { - metricsOnce.Do(func() { - metrics.MustRegister(c, templateMatchesCount, templateFailureCount, templateRRFailureCount) - }) + metrics.MustRegister(c, templateMatchesCount, templateFailureCount, templateRRFailureCount) return nil }) return nil } - -var metricsOnce sync.Once |