mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
middleware/metrics: fix crash (#295)
Fix the crash and add `setup_test.go` to catch this in the future. Fixes #292
This commit is contained in:
@@ -79,6 +79,6 @@ func prometheusParse(c *caddy.Controller) (Metrics, error) {
|
||||
return met, err
|
||||
}
|
||||
|
||||
var metricsOnce *sync.Once
|
||||
var metricsOnce sync.Once
|
||||
|
||||
const addr = "localhost:9153"
|
||||
|
||||
Reference in New Issue
Block a user