mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Rename middleware -> plugin in comment (#2818)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
committed by
Michael Grosser
parent
fd165e94d5
commit
6e1c57acfa
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
// MustRegister registers the prometheus Collectors when the metrics middleware is used.
|
||||
// MustRegister registers the prometheus Collectors when the metrics plugin is used.
|
||||
func MustRegister(c *caddy.Controller, cs ...prometheus.Collector) {
|
||||
m := dnsserver.GetConfig(c).Handler("prometheus")
|
||||
if m == nil {
|
||||
|
||||
Reference in New Issue
Block a user