mirror of
https://github.com/coredns/coredns.git
synced 2025-12-03 00:54:01 -05:00
plugin/metrics: add MustRegister function (#1648)
This registers the Collectors iff the metrics plugin has been loaded. Safes a bunch of code in each and every plugin's setup code.
This commit is contained in:
@@ -49,4 +49,4 @@ var (
|
||||
})
|
||||
)
|
||||
|
||||
var onceMetric sync.Once
|
||||
var once sync.Once
|
||||
|
||||
Reference in New Issue
Block a user